equal
deleted
inserted
replaced
397 static const char *currentTabTextKey = "currentTabText"; |
397 static const char *currentTabTextKey = "currentTabText"; |
398 static const char *currentTabNameKey = "currentTabName"; |
398 static const char *currentTabNameKey = "currentTabName"; |
399 static const char *currentTabIconKey = "currentTabIcon"; |
399 static const char *currentTabIconKey = "currentTabIcon"; |
400 static const char *currentTabToolTipKey = "currentTabToolTip"; |
400 static const char *currentTabToolTipKey = "currentTabToolTip"; |
401 static const char *currentTabWhatsThisKey = "currentTabWhatsThis"; |
401 static const char *currentTabWhatsThisKey = "currentTabWhatsThis"; |
|
402 static const char *tabMovableKey = "movable"; |
402 |
403 |
403 QTabWidgetPropertySheet::QTabWidgetPropertySheet(QTabWidget *object, QObject *parent) : |
404 QTabWidgetPropertySheet::QTabWidgetPropertySheet(QTabWidget *object, QObject *parent) : |
404 QDesignerPropertySheet(object, parent), |
405 QDesignerPropertySheet(object, parent), |
405 m_tabWidget(object) |
406 m_tabWidget(object) |
406 { |
407 { |
409 createFakeProperty(QLatin1String(currentTabIconKey), qVariantFromValue(qdesigner_internal::PropertySheetIconValue())); |
410 createFakeProperty(QLatin1String(currentTabIconKey), qVariantFromValue(qdesigner_internal::PropertySheetIconValue())); |
410 if (formWindowBase()) |
411 if (formWindowBase()) |
411 formWindowBase()->addReloadableProperty(this, indexOf(QLatin1String(currentTabIconKey))); |
412 formWindowBase()->addReloadableProperty(this, indexOf(QLatin1String(currentTabIconKey))); |
412 createFakeProperty(QLatin1String(currentTabToolTipKey), qVariantFromValue(qdesigner_internal::PropertySheetStringValue())); |
413 createFakeProperty(QLatin1String(currentTabToolTipKey), qVariantFromValue(qdesigner_internal::PropertySheetStringValue())); |
413 createFakeProperty(QLatin1String(currentTabWhatsThisKey), qVariantFromValue(qdesigner_internal::PropertySheetStringValue())); |
414 createFakeProperty(QLatin1String(currentTabWhatsThisKey), qVariantFromValue(qdesigner_internal::PropertySheetStringValue())); |
|
415 // Prevent the tab widget's drag and drop handling from interfering with Designer's |
|
416 createFakeProperty(QLatin1String(tabMovableKey), QVariant(false)); |
414 } |
417 } |
415 |
418 |
416 QTabWidgetPropertySheet::TabWidgetProperty QTabWidgetPropertySheet::tabWidgetPropertyFromName(const QString &name) |
419 QTabWidgetPropertySheet::TabWidgetProperty QTabWidgetPropertySheet::tabWidgetPropertyFromName(const QString &name) |
417 { |
420 { |
418 typedef QHash<QString, TabWidgetProperty> TabWidgetPropertyHash; |
421 typedef QHash<QString, TabWidgetProperty> TabWidgetPropertyHash; |