2021-02-09 Fred Gleason <fredg@paravelsystems.com>

* Refactored the 'Log Grids' dialog in rdlogmanager(1) to use
	the model based API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-10 16:12:20 -05:00
parent da1d8f62fb
commit 8e6b8dcc88
10 changed files with 46 additions and 68 deletions

View File

@@ -2,7 +2,7 @@
//
// List Rivendell Log Grids
//
// (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
@@ -21,9 +21,9 @@
#ifndef LIST_GRIDS_H
#define LIST_GRIDS_H
#include <q3listview.h>
#include <rddialog.h>
#include <rdservicelistmodel.h>
#include <rdtableview.h>
class ListGrids : public RDDialog
{
@@ -35,14 +35,13 @@ class ListGrids : public RDDialog
private slots:
void editData();
void doubleClickedData(Q3ListViewItem *,const QPoint &,int);
void doubleClickedData(const QModelIndex &index);
void closeData();
private:
void RefreshList();
Q3ListView *edit_grids_list;
RDTableView *edit_grids_view;
RDServiceListModel *edit_grids_model;
};
#endif
#endif // LIST_GRIDS_H