mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 07:10:11 +01:00
2021-01-26 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDTableView' and 'RDTreeView' base viewer classes. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Select a Rivendell Log
|
||||
//
|
||||
// (C) Copyright 2002-2020 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
|
||||
@@ -46,12 +46,7 @@ ListLogs::ListLogs(RDLogPlay *log,QWidget *parent)
|
||||
//
|
||||
// Log List
|
||||
//
|
||||
list_log_view=new QTableView(this);
|
||||
list_log_view->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
list_log_view->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
list_log_view->setShowGrid(false);
|
||||
list_log_view->setSortingEnabled(false);
|
||||
list_log_view->setWordWrap(false);
|
||||
list_log_view=new RDTableView(this);
|
||||
list_log_model=new RDLogListModel(this);
|
||||
list_log_model->setFont(defaultFont());
|
||||
list_log_model->setPalette(palette());
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Select a Rivendell Log
|
||||
//
|
||||
// (C) Copyright 2002-2020 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
|
||||
@@ -22,13 +22,13 @@
|
||||
#define LIST_LOGS_H
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QTableView>
|
||||
|
||||
#include <rddialog.h>
|
||||
#include <rdlogfilter.h>
|
||||
#include <rdloglistmodel.h>
|
||||
#include <rdloglock.h>
|
||||
#include <rdlogplay.h>
|
||||
#include <rdtableview.h>
|
||||
|
||||
class ListLogs : public RDDialog
|
||||
{
|
||||
@@ -59,7 +59,7 @@ class ListLogs : public RDDialog
|
||||
private:
|
||||
bool TryLock(RDLogLock *lock);
|
||||
RDLogFilter *list_filter_widget;
|
||||
QTableView *list_log_view;
|
||||
RDTableView *list_log_view;
|
||||
RDLogListModel *list_log_model;
|
||||
QString *list_logname;
|
||||
QString *list_svcname;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "logtableview.h"
|
||||
|
||||
LogTableView::LogTableView(QWidget *parent)
|
||||
: QTableView(parent)
|
||||
: RDTableView(parent)
|
||||
{
|
||||
setAcceptDrops(true);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// The Log TableView widget for RDAirPlay
|
||||
//
|
||||
// (C) Copyright 2002-2020 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
|
||||
@@ -24,11 +24,11 @@
|
||||
|
||||
#include <QDropEvent>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QTableView>
|
||||
|
||||
#include <rdlog_line.h>
|
||||
#include <rdtableview.h>
|
||||
|
||||
class LogTableView : public QTableView
|
||||
class LogTableView : public RDTableView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user