diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2d834cd..cedfa26 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,16 +1,17 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_AUTORCC ON) set(atelier_SRCS main.cpp mainwindow.cpp ) add_subdirectory(dialogs) add_subdirectory(widgets) -add_executable(atelier ${atelier_SRCS}) +add_executable(atelier ${atelier_SRCS} icons.qrc) ecm_create_qm_loader(atelier_SRCS atelier) target_link_libraries(atelier AtelierWidgets AtelierDialogs AtCore::AtCore KF5::Solid KF5::XmlGui KF5::ConfigWidgets) install(TARGETS atelier RUNTIME DESTINATION bin) diff --git a/src/icons.qrc b/src/icons.qrc new file mode 100644 index 0000000..bbaa943 --- /dev/null +++ b/src/icons.qrc @@ -0,0 +1,6 @@ + + + ../deploy/atelier.png + + + diff --git a/src/main.cpp b/src/main.cpp index 9a838d4..88d2b30 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,67 +1,69 @@ /* Atelier KDE Printer Host for 3D Printing Copyright (C) <2016> Author: Lays Rodrigues - laysrodrigues@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include #include #include #include "mainwindow.h" int main(int argc, char *argv[]) { + QApplication app(argc, argv); QCoreApplication::setOrganizationName("KDE"); QCoreApplication::setOrganizationDomain("kde.org"); QCoreApplication::setApplicationName("atelier"); KAboutData aboutData( // The program name used internally. (componentName) QStringLiteral("atelier"), // A displayable program name string. (displayName) i18n("Atelier"), // The program version string. (version) QStringLiteral("1.0"), // Short description of what the app does. (shortDescription) i18n("Printer Host for 3DPrinters"), // The license this code is released under KAboutLicense::GPL, // Copyright Statement (copyrightStatement = QString()) i18n("(c) 2016"), // Optional text shown in the About box. // Can contain any information desired. (otherText) i18n(""), // The program homepage string. (homePageAddress = QString()) QStringLiteral("http://atelier.kde.org"), // The bug report email address // (bugsEmailAddress = QLatin1String("submit@bugs.kde.org") QStringLiteral("atelier@bugs.kde.org")); aboutData.addAuthor(i18n("Lays Rodrigues"), i18n("Developer"), QStringLiteral("laysrodriguessilva@gmail.com"), QStringLiteral("http://laysrodriguesdev.wordpress.com")); aboutData.addAuthor(i18n("Chris Rizzitello"), i18n("Developer"), QStringLiteral("sithlord48@gmail.com"), QStringLiteral("http://rizzitello.wordpress.com")); aboutData.addAuthor(i18n("Patrick Pereira"), i18n("Developer"), QStringLiteral("patrickelectric@gmail.com"), QStringLiteral("http://patrickjp.com")); aboutData.addAuthor(i18n("Tomaz Canabrava"), i18n("Contributor"), QStringLiteral("tomaz@kde.com"), QStringLiteral("http://angrycane.com.br")); KAboutData::setApplicationData(aboutData); MainWindow *m = new MainWindow(); + m->setWindowIcon(QIcon(":/icon/atelier")); m->show(); return app.exec(); }