summaryrefslogtreecommitdiffstats
path: root/application/pagedialog
diff options
context:
space:
mode:
Diffstat (limited to 'application/pagedialog')
-rw-r--r--application/pagedialog/PageDialog.cpp11
-rw-r--r--application/pagedialog/PageDialog.h3
2 files changed, 5 insertions, 9 deletions
diff --git a/application/pagedialog/PageDialog.cpp b/application/pagedialog/PageDialog.cpp
index b201de85..1b5284d2 100644
--- a/application/pagedialog/PageDialog.cpp
+++ b/application/pagedialog/PageDialog.cpp
@@ -25,7 +25,7 @@
#include "widgets/IconLabel.h"
#include "widgets/PageContainer.h"
-PageDialog::PageDialog(BasePageProviderPtr pageProvider, QString defaultId, QWidget *parent)
+PageDialog::PageDialog(BasePageProvider *pageProvider, QString defaultId, QWidget *parent)
: QDialog(parent)
{
setWindowTitle(pageProvider->dialogTitle());
@@ -37,17 +37,14 @@ PageDialog::PageDialog(BasePageProviderPtr pageProvider, QString defaultId, QWid
mainLayout->setContentsMargins(0, 0, 0, 0);
setLayout(mainLayout);
- QDialogButtonBox *buttons =
- new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Close);
+ QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Close);
buttons->button(QDialogButtonBox::Close)->setDefault(true);
m_container->addButtons(buttons);
connect(buttons->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(close()));
- connect(buttons->button(QDialogButtonBox::Help), SIGNAL(clicked()), m_container,
- SLOT(help()));
+ connect(buttons->button(QDialogButtonBox::Help), SIGNAL(clicked()), m_container, SLOT(help()));
- restoreGeometry(
- QByteArray::fromBase64(MMC->settings()->get("PagedGeometry").toByteArray()));
+ restoreGeometry(QByteArray::fromBase64(MMC->settings()->get("PagedGeometry").toByteArray()));
}
void PageDialog::closeEvent(QCloseEvent *event)
diff --git a/application/pagedialog/PageDialog.h b/application/pagedialog/PageDialog.h
index 67cd290e..a287f9c9 100644
--- a/application/pagedialog/PageDialog.h
+++ b/application/pagedialog/PageDialog.h
@@ -23,8 +23,7 @@ class PageDialog : public QDialog
{
Q_OBJECT
public:
- explicit PageDialog(BasePageProviderPtr pageProvider, QString defaultId = QString(),
- QWidget *parent = 0);
+ explicit PageDialog(BasePageProvider *pageProvider, QString defaultId = QString(), QWidget *parent = 0);
virtual ~PageDialog() {}
private