Changeset 846 for trunk/src/gui/dialogs/qprogressdialog.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/dialogs/qprogressdialog.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 47 47 #include "qpainter.h" 48 48 #include "qdrawutil.h" 49 #include "qdatetime.h"50 49 #include "qlabel.h" 51 50 #include "qprogressbar.h" … … 55 54 #include "qcursor.h" 56 55 #include "qtimer.h" 56 #include "qelapsedtimer.h" 57 57 #include <private/qdialog_p.h> 58 58 #include <limits.h> … … 104 104 bool shown_once; 105 105 bool cancellation_flag; 106 Q Timestarttime;106 QElapsedTimer starttime; 107 107 #ifndef QT_NO_CURSOR 108 108 QCursor parentCursor; … … 154 154 bool(q->style()->styleHint(QStyle::SH_ProgressDialog_CenterCancelButton, 0, q)); 155 155 156 int additionalSpacing = 0; 157 #ifdef Q_OS_SYMBIAN 158 //In Symbian, we need to have wider margins for dialog borders, as the actual border is some pixels 159 //inside the dialog area (to enable transparent borders) 160 additionalSpacing = mlr; 161 #endif 162 156 163 QSize cs = cancel ? cancel->sizeHint() : QSize(0,0); 157 164 QSize bh = bar->sizeHint(); … … 186 193 187 194 if (label) 188 label->setGeometry(mlr, 0, q->width()-mlr*2, lh);189 bar->setGeometry(mlr, lh +sp, q->width()-mlr*2, bh.height());195 label->setGeometry(mlr, additionalSpacing, q->width() - mlr * 2, lh); 196 bar->setGeometry(mlr, lh + sp + additionalSpacing, q->width() - mlr * 2, bh.height()); 190 197 } 191 198
Note:
See TracChangeset
for help on using the changeset viewer.