Make view settings in TableBrowser class static

See issue #1972.
This commit is contained in:
Martin Kleusberg
2019-09-04 09:40:51 +02:00
parent fc3248554d
commit 13155e5f71
2 changed files with 5 additions and 2 deletions

View File

@@ -19,6 +19,9 @@
#include <QShortcut>
#include <QTextCodec>
QMap<sqlb::ObjectIdentifier, BrowseDataTableSettings> TableBrowser::browseTableSettings;
QString TableBrowser::defaultBrowseTableEncoding;
TableBrowser::TableBrowser(QWidget* parent) :
QWidget(parent),
ui(new Ui::TableBrowser),

View File

@@ -164,8 +164,8 @@ private:
/// re-initialized when switching to another table)
SqliteTableModel* m_browseTableModel;
QMap<sqlb::ObjectIdentifier, BrowseDataTableSettings> browseTableSettings; // TODO This probably wants to be static as soon as we have multiple instances of this class
QString defaultBrowseTableEncoding;
static QMap<sqlb::ObjectIdentifier, BrowseDataTableSettings> browseTableSettings; // This is static, so settings are shared between instances
static QString defaultBrowseTableEncoding;
Palette m_condFormatPalette;
};