mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-07 08:24:53 -04:00
Move Fox log reset action to Fox log window context menu and allow deletes of QSOs
Move to OnRowChange edit strategy for log tables so that deletes from view can be implemented cleanly. Improve layout of log view tables by resizing to contents.
This commit is contained in:
@@ -7,10 +7,15 @@
|
||||
class QString;
|
||||
class QSettings;
|
||||
class Configuration;
|
||||
class QAbstractItemModel;
|
||||
class QTableView;
|
||||
class QFont;
|
||||
|
||||
//
|
||||
// AbstractLogWindow - Base class for log view windows
|
||||
//
|
||||
// QWidget that manages the common functionality shared by windows
|
||||
// that include a QSO log view.
|
||||
//
|
||||
class AbstractLogWindow
|
||||
: public QWidget
|
||||
{
|
||||
@@ -20,11 +25,15 @@ public:
|
||||
, QWidget * parent = nullptr);
|
||||
virtual ~AbstractLogWindow () = 0;
|
||||
|
||||
void set_log_model (QAbstractItemModel *);
|
||||
// set the QTableView that shows the log records, must have its
|
||||
// model set before calling this
|
||||
void set_log_view (QTableView *);
|
||||
|
||||
void set_log_view_font (QFont const&);
|
||||
|
||||
private:
|
||||
virtual void log_model_changed (int row = -1) = 0;
|
||||
|
||||
class impl;
|
||||
pimpl<impl> m_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user