Changeset 769 for trunk/demos/embedded
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/demos/embedded/anomaly/anomaly.pro
r651 r769 28 28 include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri) 29 29 HEADERS += $$QT_SOURCE_TREE/examples/network/qftp/sym_iap_util.h 30 LIBS += -lesock -l insock -lconnmon30 LIBS += -lesock -lcommdb -linsock # For IAP selection 31 31 TARGET.CAPABILITY = NetworkServices 32 32 TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 -
trunk/demos/embedded/anomaly/src/BrowserView.cpp
r651 r769 83 83 connect(m_controlStrip, SIGNAL(backClicked()), m_webView, SLOT(back())); 84 84 connect(m_controlStrip, SIGNAL(forwardClicked()), m_webView, SLOT(forward())); 85 connect(m_controlStrip, SIGNAL(closeClicked()), qApp, SLOT(quit())); 85 86 86 87 QPalette pal = m_webView->palette(); -
trunk/demos/embedded/anomaly/src/ControlStrip.cpp
r651 r769 51 51 backPixmap.load(":/images/go-previous.png"); 52 52 forwardPixmap.load(":/images/go-next.png"); 53 closePixmap.load(":/images/button-close.png"); 53 54 } 54 55 … … 66 67 { 67 68 int h = height(); 69 int spacing = qMin(h, (width() - h * 4) / 3); 68 70 int x = event->pos().x(); 69 71 … … 75 77 76 78 if (x > width() - h) { 79 emit closeClicked(); 80 event->accept(); 81 return; 82 } 83 84 if ((x < width() - (h + spacing)) && (x > width() - (h * 2 + spacing))) { 77 85 emit forwardClicked(); 78 86 event->accept(); … … 80 88 } 81 89 82 if ((x < width() - 2 * h) && (x > width() - 3 * h)) {90 if ((x < width() - (h * 2 + spacing * 2)) && (x > width() - (h * 3 + spacing * 2))) { 83 91 emit backClicked(); 84 92 event->accept(); … … 90 98 { 91 99 int h = height(); 92 int s = (h - menuPixmap.height()) / 2; 100 int spacing = qMin(h, (width() - h * 4) / 3); 101 int s = (height() - menuPixmap.height()) / 2; 93 102 94 103 QPainter p(this); … … 96 105 p.setCompositionMode(QPainter::CompositionMode_SourceOver); 97 106 p.drawPixmap(s, s, menuPixmap); 98 p.drawPixmap(width() - 3 * h + s, s, backPixmap); 99 p.drawPixmap(width() - h + s, s, forwardPixmap); 107 p.drawPixmap(width() - h + s, s, closePixmap); 108 p.drawPixmap(width() - (h * 2 + spacing) + s, s, forwardPixmap); 109 p.drawPixmap(width() - (h * 3 + spacing * 2) + s, s, backPixmap); 110 100 111 p.end(); 101 112 } -
trunk/demos/embedded/anomaly/src/ControlStrip.h
r651 r769 59 59 void backClicked(); 60 60 void forwardClicked(); 61 void closeClicked(); 61 62 62 63 protected: … … 68 69 QPixmap backPixmap; 69 70 QPixmap forwardPixmap; 71 QPixmap closePixmap; 70 72 }; 71 73 -
trunk/demos/embedded/anomaly/src/anomaly.qrc
r561 r769 6 6 <file>images/list-add.png</file> 7 7 <file>images/list-remove.png</file> 8 <file>images/button-close.png</file> 8 9 </qresource> 9 10 </RCC> -
trunk/demos/embedded/desktopservices/contenttab.cpp
r651 r769 115 115 { 116 116 switch (event->key()) { 117 case Qt::Key_Up:118 if (currentRow() == 0) {119 setCurrentRow(count() - 1);120 } else {121 setCurrentRow(currentRow() - 1);122 }123 break;124 case Qt::Key_Down:125 if (currentRow() == (count() - 1)) {126 setCurrentRow(0);127 } else {128 setCurrentRow(currentRow() + 1);129 }130 break;131 117 case Qt::Key_Select: 132 118 openItem(currentItem()); -
trunk/demos/embedded/flightinfo/flightinfo.pro
r561 r769 10 10 include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri) 11 11 HEADERS += $$QT_SOURCE_TREE/examples/network/qftp/sym_iap_util.h 12 LIBS += -lesock -lconnmon -linsock12 LIBS += -lesock -lcommdb -linsock # For IAP selection 13 13 TARGET.CAPABILITY = NetworkServices 14 14 } -
trunk/demos/embedded/fluidlauncher/config_s60/config.xml
r561 r769 21 21 <example filename="digiflip" name="Flipping Clock" image="screenshots/digiflip.png"/> 22 22 <example filename="qmediaplayer" name="Media Player" image="screenshots/mediaplayer.png" args="-small-screen"/> 23 <example filename="spectrum" name="Spectrum Analyzer" image="screenshots/spectrum.png" args="-small-screen"/> 23 24 </demos> 24 25 <slideshow timeout="60000" interval="10000"> -
trunk/demos/embedded/fluidlauncher/fluidlauncher.pro
r651 r769 98 98 contains(QT_CONFIG, phonon) { 99 99 reg_resource.sources += $${EPOCROOT}$$HW_ZDIR$$REG_RESOURCE_IMPORT_DIR/qmediaplayer_reg.rsc 100 } 101 102 contains(QT_CONFIG, multimedia) { 103 reg_resource.sources += $${EPOCROOT}$$HW_ZDIR$$REG_RESOURCE_IMPORT_DIR/spectrum_reg.rsc 100 104 } 101 105 … … 165 169 $${EPOCROOT}$$HW_ZDIR$$APP_RESOURCE_DIR/anomaly.mif 166 170 167 # Since Fluidlauncher itself doesn't link webkit, we won't get dependency automatically 168 executables.pkg_prerules += \ 169 "; Dependency to Qt Webkit" \ 170 "(0x200267C2), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION}, {\"QtWebKit\"}" 171 isEmpty(QT_LIBINFIX) { 172 # Since Fluidlauncher itself doesn't link webkit, we won't get dependency automatically 173 executables.pkg_prerules += \ 174 "; Dependency to Qt Webkit" \ 175 "(0x200267C2), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION}, {\"QtWebKit\"}" 176 } 171 177 } 172 178 … … 176 182 mifs.sources += \ 177 183 $${EPOCROOT}$$HW_ZDIR$$APP_RESOURCE_DIR/qmediaplayer.mif 184 } 185 186 contains(QT_CONFIG, multimedia) { 187 executables.sources += spectrum.exe fftreal.dll 188 resource.sources += $${EPOCROOT}$$HW_ZDIR$$APP_RESOURCE_DIR/spectrum.rsc 189 mifs.sources += \ 190 $${EPOCROOT}$$HW_ZDIR$$APP_RESOURCE_DIR/spectrum.mif 178 191 } 179 192 -
trunk/demos/embedded/lightmaps/lightmaps.pro
r561 r769 7 7 include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri) 8 8 HEADERS += $$QT_SOURCE_TREE/examples/network/qftp/sym_iap_util.h 9 LIBS += -lesock -lconnmon -linsock9 LIBS += -lesock -lcommdb -linsock # For IAP selection 10 10 TARGET.CAPABILITY = NetworkServices 11 11 TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 -
trunk/demos/embedded/weatherinfo/weatherinfo.pro
r561 r769 9 9 include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri) 10 10 HEADERS += $$QT_SOURCE_TREE/examples/network/qftp/sym_iap_util.h 11 LIBS += -lesock -lco nnmon -linsock11 LIBS += -lesock -lcommdb -linsock # For IAP selection 12 12 TARGET.CAPABILITY = NetworkServices 13 13 }
Note:
See TracChangeset
for help on using the changeset viewer.