fix side bar

This commit is contained in:
Andrei Yankovich 2020-10-05 17:51:00 +03:00
parent 7e8e5ffa7f
commit b28c6e4169
12 changed files with 167 additions and 3 deletions

@ -1 +1 @@
Subproject commit 4612b8f0a657517879fa7b61fb24275553a69cd9
Subproject commit b4b9368f41f02a15a6d7a6e3682f5ae70fe931c5

View File

@ -0,0 +1,31 @@
#include "cqtdeployerabout.h"
CQtDeployerAbout::CQtDeployerAbout()
{
}
QString CQtDeployerAbout::data() const {
auto sourceText = tr("The CQtDeployer is application for extract all depends library of executable and create launch script for your application."
"<br><br><br>"
" Key differences of this program:"
"<br><br>"
"* Performance: this program deploys the application several times faster (up to 10 seconds)"
"<br><br>"
"* Flexibility: this application's got flags that help you to configure the deployment for your or your project's needs"
"<br><br>"
"* Crossdeploy: this application's support windows and linux distrebutives, This means that you can use it not only to deploy a project for your platform, but also to deploy a project on Linux for Windows and vice versa."
"<br><br>"
"* Fast create installers : Upon completion of the deployment, you will receive a self-contained installer of your distribution."
);
return sourceText;
}
QString CQtDeployerAbout::title() const {
return tr("Deploy any С/С++ application is easy with CQTDeployer");
}
QString CQtDeployerAbout::backgroud() const {
return resourcesPath() + "/cqtdeployer.png";
}

View File

@ -0,0 +1,18 @@
#ifndef CQTDEPLOYERABOUT_H
#define CQTDEPLOYERABOUT_H
#include <abstractpage.h>
class CQtDeployerAbout : public AbstractPage
{
public:
CQtDeployerAbout();
// AbstractPage interface
public:
QString data() const;
QString title() const;
QString backgroud() const;
};
#endif // CQTDEPLOYERABOUT_H

View File

@ -0,0 +1,21 @@
#include "cqtdeployerdocs.h"
CQtDeployerDocs::CQtDeployerDocs()
{
}
QString CQtDeployerDocs::data() const {
auto sourceText = tr("");
return sourceText;
}
QString CQtDeployerDocs::title() const {
return tr("More Inforamtions About CQtDeployer");
}
QString CQtDeployerDocs::backgroud() const {
return resourcesPath() + "/Iconbronzecorp.png";
}

View File

@ -0,0 +1,18 @@
#ifndef CQTDEPLOYERDOCS_H
#define CQTDEPLOYERDOCS_H
#include <abstractpage.h>
class CQtDeployerDocs : public AbstractPage
{
public:
CQtDeployerDocs();
// AbstractPage interface
public:
QString data() const;
QString title() const;
QString backgroud() const;
};
#endif // CQTDEPLOYERDOCS_H

View File

@ -0,0 +1,21 @@
#include "cqtdeployerexamples.h"
CQtDeployerExamples::CQtDeployerExamples()
{
}
QString CQtDeployerExamples::data() const {
auto sourceText = tr("");
return sourceText;
}
QString CQtDeployerExamples::title() const {
return tr("Get CQtDeployer");
}
QString CQtDeployerExamples::backgroud() const {
return resourcesPath() + "/cqtdeployer_screen.png";
}

View File

@ -0,0 +1,20 @@
#ifndef CQTDEPLOYEREXAMPLES_H
#define CQTDEPLOYEREXAMPLES_H
#include <abstractpage.h>
class CQtDeployerExamples: public AbstractPage
{
public:
CQtDeployerExamples();
// AbstractPage interface
public:
QString data() const;
QString title() const;
QString backgroud() const;
};
#endif // CQTDEPLOYEREXAMPLES_H

View File

@ -2,6 +2,9 @@
#include "quasarapppage.h"
#include "reader.h"
#include <cqtdeployer.h>
#include <cqtdeployerabout.h>
#include <cqtdeployerdocs.h>
#include <cqtdeployerexamples.h>
#include <home.h>
#include <qasarapporder.h>
#include <quasarapp.h>
@ -117,6 +120,10 @@ void MainModel::initQuasarApp() {
makePage(page, QuasarAppPage{}, QuasarAppSupportPlatforms{}, QasarAppOrder{});
_QuasarAppPages.insert("QuasarApp", page);
auto cqtpage = new QList<QObject*>();
makePage(cqtpage, CQtDeployerAbout{}, CQtDeployerExamples{}, CQtDeployerDocs{});
_QuasarAppPages.insert("CQtDeployer", cqtpage);
auto sideBar = new QList<QObject*>();
makePage(sideBar, Home{}, CQtDeployer{});
_QuasarAppPages.insert("SideBar", sideBar);

View File

@ -20,8 +20,7 @@ Drawer {
ImageView {
property var data: modelData
soucre: modelData.banner
text: modelData.title
source: modelData.banner
toolTip: modelData.description
anchors.margins: 20
borderColor: "#00a4e1"

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

View File

@ -9,6 +9,35 @@
<translation type="unfinished">Кроссплатформенный инструмент для развертывания приложений cpp. CQtDeployer - это приложение для извлечения всех зависимых библиотек исполняемых файлов и создания сценария запуска для вашего приложения.</translation>
</message>
</context>
<context>
<name>CQtDeployerAbout</name>
<message>
<location filename="../Models/cqtdeployerabout.cpp" line="9"/>
<source>The CQtDeployer is application for extract all depends library of executable and create launch script for your application. Key differences of this program:* Performance: this program deploys the application several times faster (up to 10 seconds)* Flexibility: this application&apos;s got flags that help you to configure the deployment for your or your project&apos;s needs* Crossdeploy: this application&apos;s support windows and linux distrebutives, This means that you can use it not only to deploy a project for your platform, but also to deploy a project on Linux for Windows and vice versa.* Fast create installers : Upon completion of the deployment, you will receive a self-contained installer of your distribution.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Models/cqtdeployerabout.cpp" line="21"/>
<source>Deploy any С/С++ application is easy with CQTDeployer</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CQtDeployerDocs</name>
<message>
<location filename="../Models/cqtdeployerdocs.cpp" line="15"/>
<source>More Inforamtions About CQtDeployer</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CQtDeployerExamples</name>
<message>
<location filename="../Models/cqtdeployerexamples.cpp" line="14"/>
<source>Get CQtDeployer</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Header</name>
<message>