mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
remove unused internal properties
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e12960e2b3
commit
e0955531fb
4 changed files with 0 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue