重新改进支持Qt4.6-Qt6.1
This commit is contained in:
@@ -39,7 +39,7 @@ QVariant SqlQueryModel::data(const QModelIndex &index, int role) const
|
||||
if (row == index.row()) {
|
||||
if (role == Qt::BackgroundRole) {
|
||||
value = QColor(property("hoverBgColor").toString());
|
||||
} else if (role == Qt::TextColorRole) {
|
||||
} else if (role == Qt::ForegroundRole) {
|
||||
value = QColor(property("hoverTextColor").toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
QT += core gui sql
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat
|
||||
|
||||
TARGET = dbpage
|
||||
TEMPLATE = app
|
||||
|
||||
Reference in New Issue
Block a user