Changeset 651 for trunk/src/gui/dialogs
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 61 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/dialogs/qabstractpagesetupdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qabstractpagesetupdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qabstractpagesetupdialog_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qabstractprintdialog.cpp
r579 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qabstractprintdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qabstractprintdialog_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qcolordialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 69 69 #endif 70 70 71 #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) 72 # define QT_SMALL_COLORDIALOG 73 #endif 74 71 75 QT_BEGIN_NAMESPACE 72 76 … … 1073 1077 lab = new QColorShowLabel(this); 1074 1078 1075 #ifdef Q_WS_S60 1079 #ifdef QT_SMALL_COLORDIALOG 1080 # ifdef Q_WS_S60 1076 1081 QS60Data s60Data = QS60Data(); 1077 1082 const bool nonTouchUI = !s60Data.hasTouchscreen; 1078 #endif 1079 1083 # elif defined Q_WS_MAEMO_5 1084 const bool nonTouchUI = false; 1085 # endif 1086 #endif 1080 1087 1081 1088 #ifndef Q_WS_WINCE 1082 #ifdef Q _WS_S601089 #ifdef QT_SMALL_COLORDIALOG 1083 1090 lab->setMinimumHeight(60); 1084 1091 #endif … … 1091 1098 // For QVGA screens only the comboboxes and color label are visible. 1092 1099 // For nHD screens only color and luminence pickers and color label are visible. 1093 #if ndef Q_WS_S601100 #if !defined(QT_SMALL_COLORDIALOG) 1094 1101 gl->addWidget(lab, 0, 0, -1, 1); 1095 1102 #else … … 1109 1116 #endif 1110 1117 lblHue->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1111 #if ndef Q_WS_S601118 #if !defined(QT_SMALL_COLORDIALOG) 1112 1119 gl->addWidget(lblHue, 0, 1); 1113 1120 gl->addWidget(hEd, 0, 2); … … 1128 1135 #endif 1129 1136 lblSat->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1130 #if ndef Q_WS_S601137 #if !defined(QT_SMALL_COLORDIALOG) 1131 1138 gl->addWidget(lblSat, 1, 1); 1132 1139 gl->addWidget(sEd, 1, 2); … … 1147 1154 #endif 1148 1155 lblVal->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1149 #if ndef Q_WS_S601156 #if !defined(QT_SMALL_COLORDIALOG) 1150 1157 gl->addWidget(lblVal, 2, 1); 1151 1158 gl->addWidget(vEd, 2, 2); … … 1166 1173 #endif 1167 1174 lblRed->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1168 #if ndef Q_WS_S601175 #if !defined(QT_SMALL_COLORDIALOG) 1169 1176 gl->addWidget(lblRed, 0, 3); 1170 1177 gl->addWidget(rEd, 0, 4); … … 1185 1192 #endif 1186 1193 lblGreen->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1187 #if ndef Q_WS_S601194 #if !defined(QT_SMALL_COLORDIALOG) 1188 1195 gl->addWidget(lblGreen, 1, 3); 1189 1196 gl->addWidget(gEd, 1, 4); … … 1204 1211 #endif 1205 1212 lblBlue->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1206 #if ndef Q_WS_S601213 #if !defined(QT_SMALL_COLORDIALOG) 1207 1214 gl->addWidget(lblBlue, 2, 3); 1208 1215 gl->addWidget(bEd, 2, 4); … … 1223 1230 #endif 1224 1231 alphaLab->setAlignment(Qt::AlignRight|Qt::AlignVCenter); 1225 #if ndef Q_WS_S601232 #if !defined(QT_SMALL_COLORDIALOG) 1226 1233 gl->addWidget(alphaLab, 3, 1, 1, 3); 1227 1234 gl->addWidget(alphaEd, 3, 4); … … 1468 1475 leftLay = 0; 1469 1476 1470 #if (defined(Q_WS_WINCE) || defined(Q_WS_S60))1477 #if defined(Q_WS_WINCE) || defined(QT_SMALL_COLORDIALOG) 1471 1478 smallDisplay = true; 1472 1479 const int lumSpace = 20; … … 1498 1505 #endif 1499 1506 1500 #if defined(Q_WS_S60) 1507 #if defined(QT_SMALL_COLORDIALOG) 1508 # if defined(Q_WS_S60) 1501 1509 QS60Data s60Data = QS60Data(); 1502 1510 const bool nonTouchUI = !s60Data.hasTouchscreen; 1511 # elif defined(Q_WS_MAEMO_5) 1512 const bool nonTouchUI = false; 1513 # endif 1503 1514 #endif 1504 1515 … … 1533 1544 } else { 1534 1545 // better color picker size for small displays 1535 #if def Q_WS_S601546 #if defined(QT_SMALL_COLORDIALOG) 1536 1547 QSize screenSize = QApplication::desktop()->availableGeometry(QCursor::pos()).size(); 1537 1548 pWidth = pHeight = qMin(screenSize.width(), screenSize.height()); … … 1559 1570 cp->setFrameStyle(QFrame::Panel + QFrame::Sunken); 1560 1571 1561 #if defined(Q _WS_S60)1572 #if defined(QT_SMALL_COLORDIALOG) 1562 1573 if (!nonTouchUI) { 1563 1574 pickLay->addWidget(cp); … … 1573 1584 1574 1585 lp = new QColorLuminancePicker(q); 1575 #if defined(Q _WS_S60)1586 #if defined(QT_SMALL_COLORDIALOG) 1576 1587 QSize screenSize = QApplication::desktop()->availableGeometry(QCursor::pos()).size(); 1577 1588 const int minDimension = qMin(screenSize.height(), screenSize.width()); … … 1597 1608 QObject::connect(cs, SIGNAL(currentColorChanged(QColor)), 1598 1609 q, SIGNAL(currentColorChanged(QColor))); 1599 #if defined(Q _WS_S60)1610 #if defined(QT_SMALL_COLORDIALOG) 1600 1611 if (!nonTouchUI) 1601 1612 pWidth -= cp->size().width(); -
trunk/src/gui/dialogs/qcolordialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qcolordialog_mac.mm
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 348 348 } 349 349 350 QAbstractEventDispatcher::instance()->interrupt(); 350 351 if (mResultCode == NSCancelButton) 351 352 mPriv->colorDialog()->reject(); -
trunk/src/gui/dialogs/qcolordialog_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 266 266 setWindowFlags(windowFlags() | Qt::WindowOkButtonHint | QFlag(qt_wince_is_mobile() ? 0 : Qt::WindowCancelButtonHint)); 267 267 #endif 268 269 #ifdef Q_WS_S60 270 if (S60->avkonComponentsSupportTransparency) { 271 bool noSystemBackground = testAttribute(Qt::WA_NoSystemBackground); 272 setAttribute(Qt::WA_TranslucentBackground); // also sets WA_NoSystemBackground 273 setAttribute(Qt::WA_NoSystemBackground, noSystemBackground); // restore system background attribute 274 } 275 #endif 268 276 } 269 277 … … 294 302 if (!qt_wince_is_smartphone()) 295 303 setWindowFlags(windowFlags() | Qt::WindowOkButtonHint | QFlag(qt_wince_is_mobile() ? 0 : Qt::WindowCancelButtonHint)); 304 #endif 305 306 #ifdef Q_WS_S60 307 if (S60->avkonComponentsSupportTransparency) { 308 bool noSystemBackground = testAttribute(Qt::WA_NoSystemBackground); 309 setAttribute(Qt::WA_TranslucentBackground); // also sets WA_NoSystemBackground 310 setAttribute(Qt::WA_NoSystemBackground, noSystemBackground); // restore system background attribute 311 } 296 312 #endif 297 313 } -
trunk/src/gui/dialogs/qdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qdialog_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qdialogsbinarycompat_win.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qerrormessage.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qerrormessage.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfiledialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 670 670 if (changed & HideNameFilterDetails) 671 671 setNameFilters(d->nameFilters); 672 673 if (changed & ShowDirsOnly) 674 setFilter((options & ShowDirsOnly) ? filter() & ~QDir::Files : filter() | QDir::Files); 672 675 } 673 676 … … 996 999 997 1000 1001 /* 1002 Strip the filters by removing the details, e.g. (*.*). 1003 */ 1004 QStringList qt_strip_filters(const QStringList &filters) 1005 { 1006 QStringList strippedFilters; 1007 QRegExp r(QString::fromLatin1(qt_file_dialog_filter_reg_exp)); 1008 for (int i = 0; i < filters.count(); ++i) { 1009 QString filterName; 1010 int index = r.indexIn(filters[i]); 1011 if (index >= 0) 1012 filterName = r.cap(1); 1013 strippedFilters.append(filterName.simplified()); 1014 } 1015 return strippedFilters; 1016 } 1017 1018 998 1019 /*! 999 1020 \since 4.4 … … 1022 1043 return; 1023 1044 1024 if (testOption(HideNameFilterDetails)) { 1025 QStringList strippedFilters; 1026 QRegExp r(QString::fromLatin1(qt_file_dialog_filter_reg_exp)); 1027 for (int i = 0; i < cleanedFilters.count(); ++i) { 1028 QString filterName; 1029 int index = r.indexIn(cleanedFilters[i]); 1030 if (index >= 0) 1031 filterName = r.cap(1); 1032 strippedFilters.append(filterName.simplified()); 1033 } 1034 d->qFileDialogUi->fileTypeCombo->addItems(strippedFilters); 1035 } else { 1045 if (testOption(HideNameFilterDetails)) 1046 d->qFileDialogUi->fileTypeCombo->addItems(qt_strip_filters(cleanedFilters)); 1047 else 1036 1048 d->qFileDialogUi->fileTypeCombo->addItems(cleanedFilters); 1037 } 1049 1038 1050 d->_q_useNameFilter(0); 1039 1051 } … … 1086 1098 return; 1087 1099 } 1088 1089 int i = d->qFileDialogUi->fileTypeCombo->findText(filter); 1100 int i; 1101 if (testOption(HideNameFilterDetails)) { 1102 i = d->qFileDialogUi->fileTypeCombo->findText(qt_strip_filters(qt_make_filter_list(filter)).first()); 1103 } else { 1104 i = d->qFileDialogUi->fileTypeCombo->findText(filter); 1105 } 1090 1106 if (i >= 0) { 1091 1107 d->qFileDialogUi->fileTypeCombo->setCurrentIndex(i); … … 1207 1223 { 1208 1224 Q_D(QFileDialog); 1209 if (d->nativeDialogInUse){1210 d->model->setFilter(d->filterForMode(filter()));1211 d->setFilter_sys();1212 return;1213 }1214 1215 1225 d->fileMode = mode; 1216 1226 d->retranslateWindowTitle(); … … 1248 1258 } 1249 1259 setLabelText(Accept, buttonText); 1260 if (d->nativeDialogInUse){ 1261 d->setFilter_sys(); 1262 return; 1263 } 1264 1250 1265 d->qFileDialogUi->fileTypeCombo->setEnabled(!testOption(ShowDirsOnly)); 1251 1266 d->_q_updateOkButton(); … … 1285 1300 } 1286 1301 d->retranslateWindowTitle(); 1302 #if defined(Q_WS_MAC) 1303 d->deleteNativeDialog_sys(); 1304 setAttribute(Qt::WA_DontShowOnScreen, false); 1305 #endif 1287 1306 } 1288 1307 … … 3230 3249 QString path = index.data(QFileSystemModel::FilePathRole).toString(); 3231 3250 if (!currentLocation.isEmpty() && path.startsWith(currentLocation)) { 3251 #if defined(Q_OS_UNIX) || defined(Q_OS_WINCE) 3252 if (currentLocation == QDir::separator()) 3253 return path.mid(currentLocation.length()); 3254 #endif 3232 3255 return path.mid(currentLocation.length() + 1); 3233 3256 } … … 3285 3308 dirModel = sourceModel; 3286 3309 QString currentLocation = QDir::toNativeSeparators(dirModel->rootPath()); 3310 #if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) 3311 if (currentLocation.endsWith(QLatin1Char(':'))) 3312 currentLocation.append(sep); 3313 #endif 3287 3314 if (currentLocation.contains(sep) && path != currentLocation) { 3288 3315 QStringList currentLocationList = splitPath(currentLocation); -
trunk/src/gui/dialogs/qfiledialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfiledialog.ui
r561 r651 2 2 <comment>********************************************************************* 3 3 ** 4 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).4 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 5 ** All rights reserved. 6 6 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfiledialog_embedded.ui
r561 r651 2 2 <comment>********************************************************************* 3 3 ** 4 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).4 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 5 ** All rights reserved. 6 6 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfiledialog_mac.mm
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 640 640 #ifndef QT_MAC_USE_COCOA 641 641 #else 642 Q_Q(QFileDialog); 642 643 QMacCocoaAutoReleasePool pool; 643 644 QNSOpenSavePanelDelegate *delegate = static_cast<QNSOpenSavePanelDelegate *>(mDelegate); 644 645 *(delegate->mQDirFilter) = model->filter(); 646 delegate->mFileMode = fileMode; 647 [delegate->mSavePanel setTitle:qt_mac_QStringToNSString(q->windowTitle())]; 648 [delegate->mSavePanel setPrompt:[delegate strip:acceptLabel]]; 649 if (fileNameLabelExplicitlySat) 650 [delegate->mSavePanel setNameFieldLabel:[delegate strip:qFileDialogUi->fileNameLabel->text()]]; 651 645 652 [delegate updateProperties]; 646 653 #endif -
trunk/src/gui/dialogs/qfiledialog_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfiledialog_win.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfileinfogatherer.cpp
r626 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfileinfogatherer_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfilesystemmodel.cpp
r627 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 1223 1223 for (; it != urls.constEnd(); ++it) { 1224 1224 QString path = (*it).toLocalFile(); 1225 success = QFile::copy(path, to + QFileInfo(path).fileName()) 1226 && QFile::remove(path) && success; 1225 success = QFile::rename(path, to + QFileInfo(path).fileName()) && success; 1227 1226 } 1228 1227 break; … … 1785 1784 if (info.size() == -1 && parentNode != &root) { 1786 1785 #else 1787 if (info.size() == -1 ) {1786 if (info.size() == -1 && !info.isSymLink()) { 1788 1787 #endif 1789 1788 removeNode(parentNode, fileName); -
trunk/src/gui/dialogs/qfilesystemmodel.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfilesystemmodel_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 262 262 263 263 inline int translateVisibleLocation(QFileSystemNode *parent, int row) const { 264 if (sortOrder == Qt::AscendingOrder) 265 return row; 266 if (parent->dirtyChildrenIndex == -1 || row < parent->dirtyChildrenIndex) 267 if (parent->dirtyChildrenIndex != -1) 264 if (sortOrder != Qt::AscendingOrder) { 265 if (parent->dirtyChildrenIndex == -1) 266 return parent->visibleChildren.count() - row - 1; 267 268 if (row < parent->dirtyChildrenIndex) 268 269 return parent->dirtyChildrenIndex - row - 1; 269 else 270 return parent->visibleChildren.count() - row - 1; 271 else 272 return row; 270 } 271 272 return row; 273 273 } 274 274 -
trunk/src/gui/dialogs/qfontdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfontdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfontdialog_mac.mm
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfontdialog_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qfscompleter_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qinputdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qinputdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qmessagebox.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 59 59 #include <QtGui/qapplication.h> 60 60 #include <QtGui/qtextedit.h> 61 #include <QtGui/qtextbrowser.h> 61 62 #include <QtGui/qmenu.h> 62 63 #include "qdialog_p.h" … … 189 190 QAbstractButton *detectedEscapeButton; 190 191 QLabel *informativeLabel; 191 #if def Q_OS_SYMBIAN192 QText Edit *textEdit;192 #if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) 193 QTextBrowser *textBrowser; 193 194 #endif 194 195 QPointer<QObject> receiverToDisconnectOnClose; … … 1727 1728 "<p>Please see <a href=\"http://qt.nokia.com/products/licensing\">qt.nokia.com/products/licensing</a> " 1728 1729 "for an overview of Qt licensing.</p>" 1729 "<p>Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).</p>"1730 "<p>Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).</p>" 1730 1731 "<p>Qt is a Nokia product. See <a href=\"http://qt.nokia.com/\">qt.nokia.com</a> " 1731 1732 "for more information.</p>" … … 2463 2464 label->setWordWrap(true); 2464 2465 QGridLayout *grid = static_cast<QGridLayout *>(layout()); 2465 #if def Q_OS_SYMBIAN2466 #if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) 2466 2467 label->hide(); 2467 QText Edit *textEdit = new QTextEdit(this);2468 text Edit->setReadOnly(true);2469 grid->addWidget(text Edit, 1, 1, 1, 1);2470 d->text Edit = textEdit;2468 QTextBrowser *textBrowser = new QTextBrowser(this); 2469 textBrowser->setOpenExternalLinks(true); 2470 grid->addWidget(textBrowser, 1, 1, 1, 1); 2471 d->textBrowser = textBrowser; 2471 2472 #else 2472 2473 grid->addWidget(label, 1, 1, 1, 1); … … 2476 2477 d->informativeLabel->setText(text); 2477 2478 2478 #if def Q_OS_SYMBIAN2479 //We need to put the informative label inside text Editto enable scrolling of long texts.2480 d->text Edit->setText(d->informativeLabel->text());2479 #if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) 2480 //We need to put the informative label inside textBrowser to enable scrolling of long texts. 2481 d->textBrowser->setText(d->informativeLabel->text()); 2481 2482 #endif 2482 2483 -
trunk/src/gui/dialogs/qmessagebox.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qnspanelproxy_mac.mm
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qpagesetupdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qpagesetupdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qpagesetupdialog_mac.mm
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qpagesetupdialog_unix.cpp
r573 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qpagesetupdialog_unix_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qpagesetupdialog_win.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintdialog.h
r573 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintdialog.qdoc
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintdialog_mac.mm
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintdialog_qws.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintdialog_unix.cpp
r578 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintdialog_win.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprintpreviewdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 208 208 QAction *printAction; 209 209 QAction *pageSetupAction; 210 #if defined(Q_WS_MAC) && !defined(QT_MAC_USE_COCOA) 211 QAction *closeAction; 212 #endif 210 213 211 214 QPointer<QObject> receiverToDisconnectOnClose; … … 288 291 toolbar->addAction(pageSetupAction); 289 292 toolbar->addAction(printAction); 293 #if defined(Q_WS_MAC) && !defined(QT_MAC_USE_COCOA) 294 toolbar->addAction(closeAction); 295 #endif 290 296 291 297 // Cannot use the actions' triggered signal here, since it doesn't autorepeat … … 407 413 QObject::connect(printAction, SIGNAL(triggered(bool)), q, SLOT(_q_print())); 408 414 QObject::connect(pageSetupAction, SIGNAL(triggered(bool)), q, SLOT(_q_pageSetup())); 415 #if defined(Q_WS_MAC) && !defined(QT_MAC_USE_COCOA) 416 closeAction = printerGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Close")); 417 QObject::connect(closeAction, SIGNAL(triggered(bool)), q, SLOT(reject())); 418 #endif 409 419 410 420 // Initial state: -
trunk/src/gui/dialogs/qprintpreviewdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprogressdialog.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qprogressdialog.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qsidebar.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qsidebar_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qwizard.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qwizard.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qwizard_win.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/gui/dialogs/qwizard_win_p.h
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com)
Note:
See TracChangeset
for help on using the changeset viewer.