GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove some virtuals and add some overrides · sqlitebrowser/sqlitebrowser@fb1eba1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • AddRecordDialog.cpp
    • AddRecordDialog.h
    • Application.h
    • CipherDialog.h
    • ColumnDisplayFormatDialog.h
    • DbStructureModel.h
    • EditDialog.h
    • EditIndexDialog.h
    • EditTableDialog.h
    • ExportDataDialog.h
    • ExportSqlDialog.h
    • ExtendedScintilla.h
    • ExtendedTableWidget.h
    • FileExtensionManager.h
    • FilterLineEdit.h
    • FilterTableHeader.h
    • FindReplaceDialog.h
    • ForeignKeyEditorDelegate.h
    • ImportCsvDialog.h
    • MainWindow.h
    • PlotDock.h
    • PreferencesDialog.h
    • RemoteDatabase.h
    • RemoteDock.h
    • RemoteModel.h
    • RemotePushDialog.h
    • SqlExecutionArea.h
    • SqlUiLexer.h
    • VacuumDialog.h
    • docktextedit.h
    • sqlitedb.h
    • sqlitetablemodel.h
    • sqlitetypes.h
    • sqltextedit.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/AddRecordDialog.cpp‎

Copy file name to clipboardExpand all lines: src/AddRecordDialog.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class NullLineEdit: public QLineEdit {
6565
class NoEditDelegate: public QStyledItemDelegate {
6666
public:
6767
NoEditDelegate(QObject* parent=nullptr): QStyledItemDelegate(parent) {}
68-
virtual QWidget* createEditor(QWidget* /* parent */, const QStyleOptionViewItem& /* option */, const QModelIndex& /* index */) const {
68+
QWidget* createEditor(QWidget* /* parent */, const QStyleOptionViewItem& /* option */, const QModelIndex& /* index */) const override {
6969
return nullptr;
7070
}
7171
};
@@ -75,11 +75,11 @@ class EditDelegate: public QStyledItemDelegate {
7575

7676
public:
7777
EditDelegate(QObject* parent=nullptr): QStyledItemDelegate(parent) {}
78-
virtual QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem& /* option */, const QModelIndex& /* index */) const {
78+
QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem& /* option */, const QModelIndex& /* index */) const override {
7979
return new NullLineEdit(parent);
8080
}
8181

82-
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const {
82+
void setEditorData(QWidget *editor, const QModelIndex &index) const override {
8383

8484
NullLineEdit* lineEditor = dynamic_cast<NullLineEdit*>(editor);
8585
// Set the editor in the null state (unless the user has actually written NULL)
@@ -91,7 +91,7 @@ class EditDelegate: public QStyledItemDelegate {
9191
lineEditor->setNull(false);
9292
}
9393
}
94-
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
94+
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override {
9595

9696
NullLineEdit* lineEditor = dynamic_cast<NullLineEdit*>(editor);
9797
// Restore NULL text (unless the user has already modified the value)
Collapse file

‎src/AddRecordDialog.h‎

Copy file name to clipboardExpand all lines: src/AddRecordDialog.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ class AddRecordDialog : public QDialog
2020

2121
public:
2222
explicit AddRecordDialog(DBBrowserDB& pdb, const sqlb::ObjectIdentifier& tableName, QWidget* parent = nullptr);
23-
~AddRecordDialog();
23+
~AddRecordDialog() override;
2424

2525
protected:
26-
void keyPressEvent(QKeyEvent *evt);
26+
void keyPressEvent(QKeyEvent *evt) override;
2727

2828
private:
2929
enum Columns {
@@ -37,7 +37,7 @@ class AddRecordDialog : public QDialog
3737
void setDefaultsStyle(QTreeWidgetItem* item);
3838

3939
private slots:
40-
virtual void accept();
40+
void accept() override;
4141
void itemChanged(QTreeWidgetItem* item, int column);
4242
void help();
4343
void on_buttonBox_clicked(QAbstractButton* button);
Collapse file

‎src/Application.h‎

Copy file name to clipboardExpand all lines: src/Application.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Application : public QApplication
1212

1313
public:
1414
explicit Application(int& argc, char** argv);
15-
virtual ~Application();
15+
~Application() override;
1616

1717
bool dontShowMainWindow() { return m_dontShowMainWindow; }
1818

@@ -21,7 +21,7 @@ class Application : public QApplication
2121
static QString versionString();
2222

2323
protected:
24-
bool event(QEvent* event);
24+
bool event(QEvent* event) override;
2525

2626
private:
2727
bool m_dontShowMainWindow;
Collapse file

‎src/CipherDialog.h‎

Copy file name to clipboardExpand all lines: src/CipherDialog.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CipherDialog : public QDialog
1919
// Set the encrypt parameter to true when the dialog is used to encrypt a database;
2020
// set it to false if the dialog is used to ask the user for the key to decrypt a file.
2121
explicit CipherDialog(QWidget* parent, bool encrypt);
22-
~CipherDialog();
22+
~CipherDialog() override;
2323

2424
CipherSettings getCipherSettings() const;
2525

Collapse file

‎src/ColumnDisplayFormatDialog.h‎

Copy file name to clipboardExpand all lines: src/ColumnDisplayFormatDialog.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ColumnDisplayFormatDialog : public QDialog
1515

1616
public:
1717
explicit ColumnDisplayFormatDialog(const QString& colname, QString current_format, QWidget* parent = nullptr);
18-
~ColumnDisplayFormatDialog();
18+
~ColumnDisplayFormatDialog() override;
1919

2020
QString selectedDisplayFormat() const;
2121

Collapse file

‎src/DbStructureModel.h‎

Copy file name to clipboardExpand all lines: src/DbStructureModel.h
+13-13Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class DbStructureModel : public QAbstractItemModel
1414

1515
public:
1616
explicit DbStructureModel(DBBrowserDB& db, QObject* parent = nullptr);
17-
~DbStructureModel();
17+
~DbStructureModel() override;
1818

19-
QVariant data(const QModelIndex& index, int role) const;
20-
Qt::ItemFlags flags(const QModelIndex& index) const;
21-
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
22-
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
23-
QModelIndex parent(const QModelIndex& index) const;
24-
int rowCount(const QModelIndex& parent = QModelIndex()) const;
25-
int columnCount(const QModelIndex& = QModelIndex()) const;
19+
QVariant data(const QModelIndex& index, int role) const override;
20+
Qt::ItemFlags flags(const QModelIndex& index) const override;
21+
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
22+
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;
23+
QModelIndex parent(const QModelIndex& index) const override;
24+
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
25+
int columnCount(const QModelIndex& = QModelIndex()) const override;
2626

27-
QStringList mimeTypes() const;
28-
QMimeData* mimeData(const QModelIndexList& indices) const;
29-
bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
27+
QStringList mimeTypes() const override;
28+
QMimeData* mimeData(const QModelIndexList& indices) const override;
29+
bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) override;
3030

3131
enum Columns
3232
{
@@ -39,8 +39,8 @@ class DbStructureModel : public QAbstractItemModel
3939

4040
public slots:
4141
void reloadData();
42-
void setDropQualifiedNames(bool value) { m_dropQualifiedNames = value; };
43-
void setDropEnquotedNames(bool value) { m_dropEnquotedNames = value; };
42+
void setDropQualifiedNames(bool value) { m_dropQualifiedNames = value; }
43+
void setDropEnquotedNames(bool value) { m_dropEnquotedNames = value; }
4444

4545
signals:
4646
void structureUpdated();
Collapse file

‎src/EditDialog.h‎

Copy file name to clipboardExpand all lines: src/EditDialog.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ class EditDialog : public QDialog
1717

1818
public:
1919
explicit EditDialog(QWidget* parent = nullptr);
20-
~EditDialog();
20+
~EditDialog() override;
2121

2222
void setCurrentIndex(const QModelIndex& idx);
2323

2424
public slots:
25-
virtual void setFocus();
26-
virtual void reject();
25+
void setFocus();
26+
void reject() override;
2727
void setReadOnly(bool ro);
2828
void reloadSettings();
2929

3030
protected:
31-
virtual void showEvent(QShowEvent* ev);
31+
void showEvent(QShowEvent* ev) override;
3232

3333
private slots:
3434
void importData();
3535
void exportData();
3636
void setNull();
3737
void updateApplyButton();
38-
virtual void accept();
38+
void accept() override;
3939
void loadData(const QByteArray& data);
4040
void toggleOverwriteMode();
4141
void editModeChanged(int newMode);
Collapse file

‎src/EditIndexDialog.h‎

Copy file name to clipboardExpand all lines: src/EditIndexDialog.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ class EditIndexDialog : public QDialog
1818

1919
public:
2020
explicit EditIndexDialog(DBBrowserDB& db, const sqlb::ObjectIdentifier& indexName, bool createIndex, QWidget* parent = nullptr);
21-
~EditIndexDialog();
21+
~EditIndexDialog() override;
2222

2323
private slots:
24-
void accept();
25-
void reject();
24+
void accept() override;
25+
void reject() override;
2626

2727
void tableChanged(const QString& new_table, bool initialLoad = false);
2828
void checkInput();
Collapse file

‎src/EditTableDialog.h‎

Copy file name to clipboardExpand all lines: src/EditTableDialog.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class EditTableDialog : public QDialog
1919

2020
public:
2121
explicit EditTableDialog(DBBrowserDB& pdb, const sqlb::ObjectIdentifier& tableName, bool createTable, QWidget* parent = nullptr);
22-
~EditTableDialog();
22+
~EditTableDialog() override;
2323

2424
protected:
25-
void keyPressEvent(QKeyEvent *evt);
25+
void keyPressEvent(QKeyEvent *evt) override;
2626

2727
private:
2828
enum Columns {
@@ -47,12 +47,12 @@ private slots:
4747
void addField();
4848
void removeField();
4949
void fieldSelectionChanged();
50-
virtual void accept();
51-
virtual void reject();
50+
void accept() override;
51+
void reject() override;
5252
void checkInput();
5353
void itemChanged(QTreeWidgetItem* item, int column);
5454
void updateTypes(QObject *object);
55-
bool eventFilter(QObject *object, QEvent *event);
55+
bool eventFilter(QObject *object, QEvent *event) override;
5656
void updateTypes();
5757
void moveUp();
5858
void moveDown();
Collapse file

‎src/ExportDataDialog.h‎

Copy file name to clipboardExpand all lines: src/ExportDataDialog.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class ExportDataDialog : public QDialog
2424

2525
explicit ExportDataDialog(DBBrowserDB& db, ExportFormats format, QWidget* parent = nullptr,
2626
const QString& query = "", const sqlb::ObjectIdentifier& selection = sqlb::ObjectIdentifier());
27-
~ExportDataDialog();
27+
~ExportDataDialog() override;
2828

2929
private slots:
30-
virtual void accept();
30+
void accept() override;
3131
void showCustomCharEdits();
3232

3333
private:

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.