remove no needed m_ghostWidget

pull/1/head
Michail Vourlakos 8 years ago
parent 883750267a
commit 7821a52ca5

@ -22,7 +22,6 @@ GlobalSettings::GlobalSettings(QObject *parent)
: QObject(parent)
{
m_corona = qobject_cast<DockCorona *>(parent);
m_ghostWidget = new QWidget();
if (m_corona) {
m_configGroup = m_corona->config()->group("General");
@ -43,7 +42,6 @@ GlobalSettings::GlobalSettings(QObject *parent)
GlobalSettings::~GlobalSettings()
{
m_altSessionAction->deleteLater();
m_ghostWidget->deleteLater();
m_configGroup.sync();
m_externalGroup.sync();
}
@ -330,8 +328,9 @@ void GlobalSettings::importLayout(QString name, QString file)
{
qDebug() << "layout should be imported : " << file;
auto msg = new QMessageBox(m_ghostWidget);
auto msg = new QMessageBox();
//msg->setIcon(QMessageBox::Warning);
msg->setModal(false);
msg->setWindowTitle(i18n("Activate Layout"));
msg->setText(i18n("You are going to activate a layout called <b>%1</b>, <br>by doing so the current layout will be lost... <br>Do you want to proceed?").arg(name));
msg->setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
@ -342,7 +341,7 @@ void GlobalSettings::importLayout(QString name, QString file)
});
connect(msg, &QMessageBox::finished, msg, &QMessageBox::deleteLater);
msg->open();
msg->show();
}
void GlobalSettings::importLayoutInternal(QString file)

@ -26,7 +26,6 @@
#include <QFileDialog>
#include <QPointer>
#include <QWidget>
#include <KConfigGroup>
#include <KSharedConfig>
@ -89,7 +88,6 @@ private:
QAction *m_altSessionAction{nullptr};
DockCorona *m_corona{nullptr};
QPointer<QFileDialog> m_fileDialog;
QPointer<QWidget> m_ghostWidget;
QVariantList m_defaultLayouts;
QVariantList m_userLayouts;
QStringList m_userLayoutsFiles;

Loading…
Cancel
Save