diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-03-05 11:35:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-05 11:35:58 +0200 |
| commit | c7e1d9738f06c6c6e7c9b41cdd8d35062d7c06b6 (patch) | |
| tree | c9c92380fcc82a64df8956face14e22bc3d2b4f7 /src/lockeddialog.h | |
| parent | 7dfe0c9a8feae35ba7554493eea4fdb4e33a64d3 (diff) | |
| parent | a540a542a47fe75d0d0e4594158422aef4340b3a (diff) | |
Merge pull request #252 from LePresidente/new_vfs_library
Update master to latest stable code.
Diffstat (limited to 'src/lockeddialog.h')
| -rw-r--r-- | src/lockeddialog.h | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/src/lockeddialog.h b/src/lockeddialog.h index 29ac459b..36c16429 100644 --- a/src/lockeddialog.h +++ b/src/lockeddialog.h @@ -17,15 +17,9 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef LOCKEDDIALOG_H
-#define LOCKEDDIALOG_H
+#pragma once
-#include <QDialog> // for QDialog
-#include <QObject> // for Q_OBJECT, slots
-#include <QString> // for QString
-
-class QResizeEvent;
-class QWidget;
+#include "lockeddialogbase.h"
namespace Ui {
class LockedDialog;
@@ -39,38 +33,25 @@ namespace Ui { * data on which Mod Organizer works. After the UI is unlocked (manually or after the
* external application closed) MO will refresh all of its data sources
**/
-class LockedDialog : public QDialog
+class LockedDialog : public LockedDialogBase
{
Q_OBJECT
public:
- explicit LockedDialog(QWidget *parent = 0, const QString &text = "", bool unlockButton = true);
+ explicit LockedDialog(QWidget *parent = 0, bool unlockByButton = false);
~LockedDialog();
- /**
- * @brief see if the user clicked the unlock-button
- *
- * @return true if the user clicked the unlock button
- **/
- bool unlockClicked() const { return m_UnlockClicked; }
-
- /**
- * @brief set the name of the process being run
- * @param name of process
- */
- void setProcessName(const QString &name);
+ void setProcessName(const QString &name) override;
protected:
- virtual void resizeEvent(QResizeEvent *event);
+ void unlock() override;
private slots:
void on_unlockButton_clicked();
private:
+
Ui::LockedDialog *ui;
- bool m_UnlockClicked;
};
-
-#endif // LOCKEDDIALOG_H
|
