mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 12:17:26 +01:00
see #2489 removed custom stylesheet from the library selector widget, this made letters of the active item appear white. Text is now visible on the dark blue background and should work correctly regardless of the theme chosen by the user
This commit is contained in:
parent
f5e22c040b
commit
212c57b3cf
@ -6,8 +6,6 @@
|
||||
|
||||
Author: Vadim Kurland vadim@fwbuilder.org
|
||||
|
||||
$Id$
|
||||
|
||||
This program is free software which we release under the GNU General Public
|
||||
License. You may redistribute and/or modify this program under the terms
|
||||
of that license as published by the Free Software Foundation; either
|
||||
@ -38,6 +36,7 @@
|
||||
|
||||
using namespace libfwbuilder;
|
||||
|
||||
|
||||
ListOfLibrariesModel::ListOfLibrariesModel(QObject *parent) : QStringListModel(parent)
|
||||
{
|
||||
top_static_items.push_back(tr("Object Libraries:"));
|
||||
@ -65,7 +64,7 @@ Qt::ItemFlags ListOfLibrariesModel::flags(const QModelIndex &index) const
|
||||
|
||||
FWObject *lib = items.at(index.row()).lib;
|
||||
if (lib == NULL) return Qt::ItemIsEnabled;
|
||||
else return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
||||
else return QStringListModel::flags(index);
|
||||
}
|
||||
|
||||
bool ListOfLibrariesModel::insertRows(int row, int count, const QModelIndex & parent)
|
||||
|
||||
@ -62,10 +62,22 @@ p, li { white-space: pre-wrap; }
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">that ships with the package. Library <span style=" font-weight:600;">&quot;User&quot;</span></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">is where you create your own objects.</p></body></html></string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QComboBox { padding: 2px;}
|
||||
</string>
|
||||
<property name="autoFillBackground">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="frame">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Item1 </string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Item 2</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
@ -75,6 +87,9 @@ p, li { white-space: pre-wrap; }
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QStackedWidget" name="widgetStack">
|
||||
<property name="autoFillBackground">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="page">
|
||||
<property name="palette">
|
||||
<palette>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user