From 5717da2d3b6e0e0cc5b4363423c4bb8dc861b119 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 7 Aug 2014 10:26:01 +0200 Subject: [PATCH 4/5] Add icon to trivial wizard. Do not submit, just for testing. Change-Id: I656d029f70b692795a2cbaa748ac60a39b0045b9 --- examples/widgets/dialogs/trivialwizard/qtlogo-64.png | Bin 0 -> 2991 bytes examples/widgets/dialogs/trivialwizard/trivialwizard.cpp | 4 ++++ examples/widgets/dialogs/trivialwizard/trivialwizard.pro | 5 ++++- examples/widgets/dialogs/trivialwizard/wiz.qrc | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 examples/widgets/dialogs/trivialwizard/qtlogo-64.png create mode 100644 examples/widgets/dialogs/trivialwizard/wiz.qrc diff --git a/examples/widgets/dialogs/trivialwizard/qtlogo-64.png b/examples/widgets/dialogs/trivialwizard/qtlogo-64.png new file mode 100644 index 0000000000000000000000000000000000000000..4f68e162de4295f123c6979c0f6f422031bc5603 GIT binary patch literal 2991 zcmV;g3sCflP)I)Ph5`~Z$3?K;!c>xKSkdTDDcJJQj zxu<_@5{Y~7X2af%ar(_L!#Tfi&-vXi=bU@a@BA)9DaBZD7Q3tf3IVJJFxzNi;%5{% zT*+yc7?X)Hnam7j7>4j((#!Koi^$VzNm9yXiGEtXxvpo-4!%b)V+r6acHInMJAfDf zaAn&tXQ2}gr!lAwydENZS*4Hnl2%cmCqz*xmnFKld~;oUsLtzwfC4y+UC#pe{ct&b znhi@=$LP{A=T(T;L;88Ia!wGGT1li8vZU-iw5hH|mkxr2rU1@j*L47P50@QIBZ_Z} zhsA0Lt3y1eC|(a4;JiwkC@3dIfmX^A-FIkH?a6TTrz(K6*kuM#3m|8>Zuy#6OwF){ z!-t?C3JPW2WRUYJ?E~dTG28t zEkxLZd*%HQp(Q|gm-E6iS{%^TJ+gW>4C7UZj@4-Jtg3q zGXgTFOvCL(x8n9C>tMIoM>woFfY$z#sPC>qS?l}YWp6lK856n-F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^$e&gKuhfV7?kcqO)k2|U+&=4`ATe{U16G>>JNABt3w<|X`y;O*#vVAT)8THx zo7I2Csf*PCd3J{pIeB&f92(etXsF#6vcF+Tk;$47fwXB>w4OSRWsesjH$4Zxx$$8X z<`(&J`?w3(^2K@(C2&k3TnJl|l+|Xym3emLFSKCK7ghMh^AD@?Vk44}8Kb@v)D;@J zH(}2bb3_>t8*jq-jscu(JE6*1nRQpV-GD69Givn{k|vin%?425)sk0K?Q>I#uwltI ztjf9@SH#Z?iw}}SRZ~(XL;zP-1PlgXcUh_GTxS>qauVj@w!B|siEFLy{S%pj$h1_= zHX#B;#Trqtz=`u6gZR~p4^BjvqtMwd)|79qQw=RmSgP!d0tZrER=o4^e(b2wJ~ZhK zssIDM@?RF-LJ#g;lTRHyZX<{IGMbGFJ^>{<$-1b}Mn zSy2GiO$3f5-Td%_O7wGCqWdeh)P?tAUnd0f^|)*197kpLOnaQyL%MlhIV}pxF-fFf l$TBUd*j)GheCwhU{s(GVj(9uH$k+e?002ovPDHLkV1nRJn8W}8 literal 0 HcmV?d00001 diff --git a/examples/widgets/dialogs/trivialwizard/trivialwizard.cpp b/examples/widgets/dialogs/trivialwizard/trivialwizard.cpp index 05bade6..2273acb 100644 --- a/examples/widgets/dialogs/trivialwizard/trivialwizard.cpp +++ b/examples/widgets/dialogs/trivialwizard/trivialwizard.cpp @@ -124,11 +124,15 @@ int main(int argc, char *argv[]) #endif QWizard wizard; + QIcon icon(":/images/qtlogo-64.png"); + qDebug() << QT_VERSION_STR << icon; + wizard.setWindowIcon(icon); wizard.addPage(createIntroPage()); wizard.addPage(createRegistrationPage()); wizard.addPage(createConclusionPage()); wizard.setWindowTitle("Trivial Wizard"); + wizard.show(); return app.exec(); diff --git a/examples/widgets/dialogs/trivialwizard/trivialwizard.pro b/examples/widgets/dialogs/trivialwizard/trivialwizard.pro index 797025d..a61638a 100644 --- a/examples/widgets/dialogs/trivialwizard/trivialwizard.pro +++ b/examples/widgets/dialogs/trivialwizard/trivialwizard.pro @@ -1,7 +1,10 @@ QT += widgets - +CONFIG+=console SOURCES = trivialwizard.cpp # install target.path = $$[QT_INSTALL_EXAMPLES]/widgets/dialogs/trivialwizard INSTALLS += target + +RESOURCES += \ + wiz.qrc diff --git a/examples/widgets/dialogs/trivialwizard/wiz.qrc b/examples/widgets/dialogs/trivialwizard/wiz.qrc new file mode 100644 index 0000000..a7697bf --- /dev/null +++ b/examples/widgets/dialogs/trivialwizard/wiz.qrc @@ -0,0 +1,5 @@ + + + qtlogo-64.png + + -- 1.9.4.msysgit.0