2021-01-19 Fred Gleason <fredg@paravelsystems.com>

* Added an 'RDGroupListModel' class.
	* Refactored the 'List Groups' dialog in rdadmin(1) to use the
	model-based API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-01-19 15:27:06 -05:00
parent 6b1abaa0eb
commit 35d6d4ae8d
25 changed files with 950 additions and 357 deletions

View File

@@ -2,7 +2,7 @@
//
// Rename a Rivendell Group
//
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -35,14 +35,21 @@ class RenameGroup : public RDDialog
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
public slots:
int exec(QString *newname);
private slots:
void okData();
void cancelData();
private:
QLineEdit *group_name_edit;
QLineEdit *group_newname_edit;
QString group_name;
protected:
void closeEvent(QCloseEvent *e);
private:
QLineEdit *group_name_edit;
QLineEdit *group_newname_edit;
QString group_name;
QString *group_new_name;
};