Merge branch 'master' of gitlab.com:eelke/pgLab
This commit is contained in:
commit
68922fdae8
10 changed files with 10 additions and 35 deletions
|
|
@ -34,6 +34,7 @@ namespace {
|
||||||
BackupFormatModel::BackupFormatModel(QObject *parent)
|
BackupFormatModel::BackupFormatModel(QObject *parent)
|
||||||
: QAbstractListModel(parent)
|
: QAbstractListModel(parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//QVariant BackupFormatModel::headerData(int section, Qt::Orientation orientation, int role) const
|
//QVariant BackupFormatModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <QAbstractListModel>
|
#include <QAbstractListModel>
|
||||||
|
|
||||||
|
|
||||||
class BackupFormatModel : public QAbstractListModel
|
class BackupFormatModel : public QAbstractListModel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
@ -21,6 +22,7 @@ public:
|
||||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BACKUPFORMATMODEL_H
|
#endif // BACKUPFORMATMODEL_H
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,6 @@ CONFIG += staticlib
|
||||||
error( "Couldn't find the common.pri file!" )
|
error( "Couldn't find the common.pri file!" )
|
||||||
}
|
}
|
||||||
|
|
||||||
INCLUDEPATH += C:\Prog\include\pgsql
|
|
||||||
|
|
||||||
|
|
||||||
# You can also make your code fail to compile if you use deprecated APIs.
|
# You can also make your code fail to compile if you use deprecated APIs.
|
||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
#include "UserConfiguration.h"
|
#include "UserConfiguration.h"
|
||||||
#include "catalog/PgClass.h"
|
#include "catalog/PgClass.h"
|
||||||
#include <QSortFilterProxyModel>
|
#include <QSortFilterProxyModel>
|
||||||
|
#include <QStyledItemDelegate>
|
||||||
#include <QStringBuilder>
|
#include <QStringBuilder>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
|
|
@ -25,6 +26,7 @@ ColumnPage::ColumnPage(QWidget *parent)
|
||||||
m_columnModel = new ColumnTableModel(this);
|
m_columnModel = new ColumnTableModel(this);
|
||||||
m_sortFilterProxy = new QSortFilterProxyModel(this);
|
m_sortFilterProxy = new QSortFilterProxyModel(this);
|
||||||
m_sortFilterProxy->setSourceModel(m_columnModel);
|
m_sortFilterProxy->setSourceModel(m_columnModel);
|
||||||
|
m_tableView->setItemDelegateForColumn(ColumnTableModel::TypeCol, new QStyledItemDelegate(this));
|
||||||
m_tableView->setModel(m_sortFilterProxy);
|
m_tableView->setModel(m_sortFilterProxy);
|
||||||
m_tableView->setSortingEnabled(true);
|
m_tableView->setSortingEnabled(true);
|
||||||
m_tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
m_tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,6 @@ RESOURCES += \
|
||||||
|
|
||||||
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
|
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
|
||||||
|
|
||||||
LIBS += -Lc:/prog/lib/
|
|
||||||
|
|
||||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../core/release/ -lcore
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../core/release/ -lcore
|
||||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../core/debug/ -lcore
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../core/debug/ -lcore
|
||||||
|
|
||||||
|
|
@ -195,7 +193,6 @@ DEPENDPATH += $$PWD/../core
|
||||||
win32:CONFIG(debug, debug|release): LIBS += -lbotand
|
win32:CONFIG(debug, debug|release): LIBS += -lbotand
|
||||||
else:win32:CONFIG(release, debug|release): LIBS += -lbotan
|
else:win32:CONFIG(release, debug|release): LIBS += -lbotan
|
||||||
|
|
||||||
|
|
||||||
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/release/libcore.a
|
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/release/libcore.a
|
||||||
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/debug/libcore.a
|
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/debug/libcore.a
|
||||||
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/release/core.lib
|
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../core/release/core.lib
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,7 @@ void CatalogTablesPage::setCatalog(std::shared_ptr<PgDatabaseCatalog> cat)
|
||||||
void CatalogTablesPage::setNamespaceFilter(NamespaceFilter filter)
|
void CatalogTablesPage::setNamespaceFilter(NamespaceFilter filter)
|
||||||
{
|
{
|
||||||
m_tablesModel->setNamespaceFilter(filter);
|
m_tablesModel->setNamespaceFilter(filter);
|
||||||
|
m_tableView->resizeColumnsToContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CatalogTablesPage::tableListTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
void CatalogTablesPage::tableListTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ CONFIG += staticlib
|
||||||
error( "Couldn't find the common.pri file!" )
|
error( "Couldn't find the common.pri file!" )
|
||||||
}
|
}
|
||||||
|
|
||||||
INCLUDEPATH += C:\Prog\include\pgsql
|
|
||||||
|
|
||||||
# You can also make your code fail to compile if you use deprecated APIs.
|
# You can also make your code fail to compile if you use deprecated APIs.
|
||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
|
|
|
||||||
|
|
@ -16,18 +16,7 @@ TEMPLATE = lib
|
||||||
error( "Couldn't find the common.pri file!" )
|
error( "Couldn't find the common.pri file!" )
|
||||||
}
|
}
|
||||||
|
|
||||||
#LIBS += -LC:/prog/boost/lib -Lc:/prog/lib libpq.lib fmt.lib User32.lib ws2_32.lib
|
LIBS += -lws2_32 -llibpq
|
||||||
LIBS += -LC:/PROG/LIB -lws2_32 -llibpq
|
|
||||||
|
|
||||||
debug {
|
|
||||||
#LIBS += c:/prog/lib/botand_imp.lib
|
|
||||||
}
|
|
||||||
|
|
||||||
release {
|
|
||||||
# LIBS += c:\prog\lib\botan.lib
|
|
||||||
}
|
|
||||||
|
|
||||||
#win32:RC_ICONS += pglab.ico
|
|
||||||
|
|
||||||
SOURCES += Pgsql_Connection.cpp \
|
SOURCES += Pgsql_Connection.cpp \
|
||||||
Pgsql_Params.cpp \
|
Pgsql_Params.cpp \
|
||||||
|
|
@ -56,12 +45,6 @@ HEADERS += Pgsql_Connection.h \
|
||||||
Pgsql_ErrorDetails.h \
|
Pgsql_ErrorDetails.h \
|
||||||
Pgsql_Canceller.h
|
Pgsql_Canceller.h
|
||||||
|
|
||||||
#FORMS +=
|
|
||||||
|
|
||||||
#RESOURCES += \
|
|
||||||
# resources.qrc
|
|
||||||
|
|
||||||
#QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
|
|
||||||
|
|
||||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../core/release/ -lcore
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../core/release/ -lcore
|
||||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../core/debug/ -lcore
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../core/debug/ -lcore
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,6 @@ CONFIG += qt
|
||||||
|
|
||||||
QT += core
|
QT += core
|
||||||
|
|
||||||
INCLUDEPATH += C:\Prog\include\pgsql
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
HEADERS +=
|
HEADERS +=
|
||||||
|
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
|
|
|
||||||
|
|
@ -30,13 +30,11 @@ SOURCES += main.cpp \
|
||||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../../core/release/ -lcore
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../../core/release/ -lcore
|
||||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../../core/debug/ -lcore
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../../core/debug/ -lcore
|
||||||
|
|
||||||
INCLUDEPATH += C:\prog\include \
|
|
||||||
C:\Prog\include\pgsql \
|
|
||||||
C:\VSproj\boost32\include
|
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../../core
|
INCLUDEPATH += $$PWD/../../core
|
||||||
DEPENDPATH += $$PWD/../../core
|
DEPENDPATH += $$PWD/../../core
|
||||||
LIBS += c:\prog\lib\botand.lib
|
|
||||||
|
win32:CONFIG(debug, debug|release): LIBS += -lbotand
|
||||||
|
else:win32:CONFIG(release, debug|release): LIBS += -lbotan
|
||||||
|
|
||||||
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../../core/release/libcore.a
|
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../../core/release/libcore.a
|
||||||
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../../core/debug/libcore.a
|
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../../core/debug/libcore.a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue