Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 73c86edc rédigé par Kubat's avatar Kubat
Parcourir les fichiers

RSC: Add a qrc file for resources likes pictures

parent 20040428
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!3Add documents
...@@ -52,10 +52,12 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) ...@@ -52,10 +52,12 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(Vivy qt_add_executable(Vivy
MANUAL_FINALIZATION MANUAL_FINALIZATION
${PROJECT_SOURCES} ${PROJECT_SOURCES}
utils/rsc/VivyRessources.qrc
) )
else() else()
add_executable(Vivy add_executable(Vivy
${PROJECT_SOURCES} ${PROJECT_SOURCES}
utils/rsc/VivyRessources.qrc
) )
endif() endif()
......
...@@ -24,6 +24,9 @@ MainWindow::MainWindow(QWidget *parent) noexcept ...@@ -24,6 +24,9 @@ MainWindow::MainWindow(QWidget *parent) noexcept
/* Some ugly stuff going on here with the toolbars and the menues */ /* Some ugly stuff going on here with the toolbars and the menues */
#include "MainWindow.xdef" #include "MainWindow.xdef"
/* Setup the main window other properties */
setWindowIcon(QIcon(":/icons/vivy.png"));
/* Setup the tabs to display the documents */ /* Setup the tabs to display the documents */
documents = new QTabWidget(this); documents = new QTabWidget(this);
documents->setMovable(true); documents->setMovable(true);
......
#include "VivyApplication.hh" #include "VivyApplication.hh"
#include "MainWindow.hh" #include "MainWindow.hh"
#include <stdexcept>
/* Defined in the VivyXpm.c file */
extern char *vivy_xpm[];
VivyApplication::VivyApplication(int argc, char **argv) VivyApplication::VivyApplication(int argc, char **argv)
: QApplication(argc, argv) : QApplication(argc, argv)
{ {
......
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>icons/vivy.png</file>
</qresource>
</RCC>
utils/rsc/icons/vivy.png

101 ko

0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter