Fix bug with EditMountPointDialog not having Ok&Cancel buttons.
This commit is contained in:
parent
c140e6665f
commit
97175c71ad
|
@ -1,5 +1,6 @@
|
|||
/*************************************************************************
|
||||
* Copyright (C) 2009, 2010 by Volker Lanz <vl@fidra.de> *
|
||||
* Copyright (C) 2015 by Teo Mrnjavac <teo@kde.org> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License as *
|
||||
|
@ -27,6 +28,8 @@
|
|||
#include <KConfigGroup>
|
||||
#include <KSharedConfig>
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
|
||||
EditMountPointDialog::EditMountPointDialog(QWidget* parent, Partition& p) :
|
||||
QDialog(parent),
|
||||
m_Partition(p),
|
||||
|
@ -39,6 +42,15 @@ EditMountPointDialog::EditMountPointDialog(QWidget* parent, Partition& p) :
|
|||
|
||||
KConfigGroup kcg(KSharedConfig::openConfig(), "editMountPointDialog");
|
||||
restoreGeometry(kcg.readEntry<QByteArray>("Geometry", QByteArray()));
|
||||
|
||||
QDialogButtonBox* dbb = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
|
||||
Qt::Horizontal,
|
||||
this );
|
||||
mainLayout->addWidget(dbb);
|
||||
connect(dbb, &QDialogButtonBox::accepted,
|
||||
this, &EditMountPointDialog::accept);
|
||||
connect(dbb, &QDialogButtonBox::rejected,
|
||||
this, &EditMountPointDialog::reject);
|
||||
}
|
||||
|
||||
/** Destroys an EditMOuntOptionsDialog instance */
|
||||
|
|
Loading…
Reference in New Issue