mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-15 17:11:33 +01:00
2020-12-15 Fred Gleason <fredg@paravelsystems.com>
* Added a right-click menu to the 'Edit Log' dialog in rdlogedit(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -264,7 +264,7 @@ EditLog::EditLog(QString logname,QString *filter,QString *group,
|
||||
//
|
||||
// Log Event View
|
||||
//
|
||||
edit_log_view=new DropTableView(this);
|
||||
edit_log_view=new LogTableView(this);
|
||||
edit_log_view->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
edit_log_view->setSelectionMode(QAbstractItemView::ContiguousSelection);
|
||||
edit_log_view->setShowGrid(false);
|
||||
@@ -276,6 +276,9 @@ EditLog::EditLog(QString logname,QString *filter,QString *group,
|
||||
edit_log_model->load(true);
|
||||
edit_log_view->setModel(edit_log_model);
|
||||
edit_log_view->resizeColumnsToContents();
|
||||
connect(edit_log_model,
|
||||
SIGNAL(dataChanged(const QModelIndex &,const QModelIndex &)),
|
||||
this,SLOT(dataChangedData(const QModelIndex &,const QModelIndex &)));
|
||||
connect(edit_log_view,SIGNAL(doubleClicked(const QModelIndex &)),
|
||||
this,SLOT(doubleClickedData(const QModelIndex &)));
|
||||
connect(edit_log_view,SIGNAL(clicked(const QModelIndex &)),
|
||||
@@ -595,6 +598,13 @@ int EditLog::exec()
|
||||
}
|
||||
|
||||
|
||||
void EditLog::dataChangedData(const QModelIndex &top_left,
|
||||
const QModelIndex &bottom_right)
|
||||
{
|
||||
SetLogModified(true);
|
||||
}
|
||||
|
||||
|
||||
void EditLog::descriptionChangedData(const QString &)
|
||||
{
|
||||
SetLogModified(true);
|
||||
|
||||
Reference in New Issue
Block a user