Commit a42a8443 authored by Artem Grinev's avatar Artem Grinev Committed by Artem Grinev
Browse files

Beta 1

parent 9b96f9b3
......@@ -4,7 +4,6 @@ QT += quick gui widgets quickwidgets quickcontrols2 dbus
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
......@@ -67,4 +66,5 @@ SOURCES += \
src/cpp/src/AURPackageModel.cpp \
src/cpp/src/HistoryItemModel.cpp
VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
DEFINES += VERSION=\\\"$$VERSION\\\"
......@@ -4,7 +4,7 @@ Comment=
Exec=/usr/bin/pamac-qt
GenericName[en_US]=
GenericName=
Icon=package-manager-icon
Icon=system-software-install
MimeType=
Name[en_US]=Pamac-Qt
Name=Pamac-Qt
......
......@@ -20,6 +20,9 @@
static QQmlDebuggingEnabler enabler;
#endif
#define _STR(X) #X
#define STR(X) _STR(X)
int main(int argc, char *argv[])
{
......@@ -28,10 +31,10 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
QApplication::setOrganizationName("Artem Grinev");
QApplication::setApplicationName("PamacQt");
QApplication::setWindowIcon(QIcon::fromTheme("package-x-generic"));
QApplication::setApplicationName("Pamac-Qt");
QApplication::setApplicationVersion(QString((VERSION)));
QApplication::setWindowIcon(QIcon::fromTheme("system-software-install"));
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QIcon::fromTheme("go-previous");
QCommandLineParser parser;
parser.addHelpOption();
......@@ -61,6 +64,9 @@ int main(int argc, char *argv[])
qRegisterMetaType<QmlFuture>("Future");
qRegisterMetaType<QList<PamacQt::HistoryItem>>("QList<HistoryItem>");
//Workaround
QIcon::fromTheme("go-previous");
QIcon::fromTheme("package-x-generic");
//A (dirty) work around the bug that causes icons not to load in kde: manually set icon theme name
if(QIcon::themeName().isEmpty()){
QIcon::setThemeName("breeze");
......
......@@ -6,8 +6,8 @@ Dialog {
id: dialog
title: "About"
standardButtons: Dialog.Ok
height: 300
width: 300
height: 350
Item {
anchors.fill: parent
id: item1
......@@ -18,7 +18,7 @@ Dialog {
anchors.top: parent.top
anchors.topMargin: 25
anchors.horizontalCenter: parent.horizontalCenter
source: "image://icons/package-x-generic"
source: "image://icons/system-software-install"
}
Label {
......@@ -33,9 +33,7 @@ Dialog {
Label {
id: label
text: qsTr("A Qt5 frontend for the libpamac")
anchors.bottom: parent.bottom
anchors.bottomMargin: 25
text: qsTr("A Qt5 frontend to the libpamac")
anchors.top: text1.bottom
anchors.topMargin: 25
font.pointSize: 11
......@@ -44,9 +42,18 @@ Dialog {
Label {
id: label1
text: qsTr("Artem Grinev (aka LordTermor) for Manjaro Linux")
anchors.top: label.bottom
anchors.topMargin: 25
font.pointSize: 8
anchors.horizontalCenter: parent.horizontalCenter
}
Label {
wrapMode: Text.WordWrap
id: label2
text: qsTr("Version: ")+ Qt.application.version
anchors.bottom: parent.bottom
anchors.bottomMargin: 25
anchors.top: label.bottom
anchors.top: label1.bottom
anchors.topMargin: 25
font.pointSize: 8
anchors.horizontalCenter: parent.horizontalCenter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment