Changeset 769 for trunk/demos/embedded/anomaly/src
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
- 1 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/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 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 53 54 } 54 55 … … 66 67 { 67 68 int h = height(); 69 68 70 int x = event->pos().x(); 69 71 … … 75 77 76 78 if (x > width() - h) { 79 80 81 82 83 84 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() - )) { 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 61 62 62 63 protected: … … 68 69 QPixmap backPixmap; 69 70 QPixmap forwardPixmap; 71 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 8 9 </qresource> 9 10 </RCC>
Note:
See TracChangeset
for help on using the changeset viewer.