remove unused internal properties

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-03-25 12:21:52 +02:00
parent e12960e2b3
commit e0955531fb
4 changed files with 0 additions and 18 deletions

View file

@ -918,7 +918,6 @@ void FormWindowManager::slotUpdateActions()
QDesignerFormWindowInterface *FormWindowManager::createFormWindow(QWidget *parentWidget, Qt::WindowFlags flags)
{
FormWindow *formWindow = new FormWindow(qobject_cast<FormEditor*>(core()), parentWidget, flags);
formWindow->setProperty(WidgetFactory::disableStyleCustomPaintingPropertyC, QVariant(true));
addFormWindow(formWindow);
return formWindow;
}

View file

@ -363,11 +363,9 @@ QWidget *PreviewManager::createPreview(const QDesignerFormWindowInterface *fw,
formWidget->setAttribute(Qt::WA_DeleteOnClose, true);
connect(formWidget, SIGNAL(destroyed()), zw, SLOT(close()));
zw->setZoom(initialZoom);
zw->setProperty(WidgetFactory::disableStyleCustomPaintingPropertyC, QVariant(true));
return zw;
}
formWidget->setParent(fw->window(), Qt::Dialog);
formWidget->setProperty(WidgetFactory::disableStyleCustomPaintingPropertyC, QVariant(true));
return formWidget;
}

View file

@ -169,7 +169,6 @@ WidgetFactory::Strings::Strings() :
// ---------------- WidgetFactory
QPointer<QWidget> *WidgetFactory::m_lastPassiveInteractor = new QPointer<QWidget>();
bool WidgetFactory::m_lastWasAPassiveInteractor = false;
const char *WidgetFactory::disableStyleCustomPaintingPropertyC = "_q_custom_style_disabled";
WidgetFactory::WidgetFactory(QDesignerFormEditorInterface *core, QObject *parent)
: QDesignerWidgetFactoryInterface(parent),
@ -557,16 +556,6 @@ void WidgetFactory::initializeCommon(QWidget *widget) const
// Apply style
if (m_currentStyle)
widget->setStyle(m_currentStyle);
// Prevent the wizard from emulating the Windows Vista Theme.
// This theme (in both Aero and Basic mode) is tricky to
// emulate properly in designer due to 1) the manipulation of the non-client area of
// the top-level window, and 2) the upper-right location of the Back button.
// The wizard falls back to QWizard::ModernStyle whenever the Vista theme
// would normally apply.
if (QWizard *wizard = qobject_cast<QWizard *>(widget)) {
wizard->setProperty("_q_wizard_vista_off", QVariant(true));
return;
}
}
// Necessary initializations for preview objects

View file

@ -102,10 +102,6 @@ public:
// Return whether object was created by the factory for the form editor.
static bool isFormEditorObject(const QObject *o);
// Boolean dynamic property to set on widgets to prevent custom
// styles from interfering
static const char *disableStyleCustomPaintingPropertyC;
public slots:
void loadPlugins();