Changeset View
Changeset View
Standalone View
Standalone View
src/formeditor/WidgetTreeWidget.cpp
Show All 21 Lines | |||||
22 | 22 | | |||
23 | #include <QContextMenuEvent> | 23 | #include <QContextMenuEvent> | ||
24 | #include <QDebug> | 24 | #include <QDebug> | ||
25 | 25 | | |||
26 | #include <KIconEffect> | 26 | #include <KIconEffect> | ||
27 | #include <KLocalizedString> | 27 | #include <KLocalizedString> | ||
28 | 28 | | |||
29 | #include <KexiIcon.h> | 29 | #include <KexiIcon.h> | ||
30 | #include <KexiStyle.h> | ||||
30 | 31 | | |||
31 | #include "objecttree.h" | 32 | #include "objecttree.h" | ||
32 | #include "form.h" | 33 | #include "form.h" | ||
33 | #include "container.h" | 34 | #include "container.h" | ||
34 | #include "widgetlibrary.h" | 35 | #include "widgetlibrary.h" | ||
35 | #include "commands.h" | 36 | #include "commands.h" | ||
36 | 37 | | |||
37 | using namespace KFormDesigner; | 38 | using namespace KFormDesigner; | ||
▲ Show 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | |||||
214 | WidgetTreeWidget::Private::~Private() | 215 | WidgetTreeWidget::Private::~Private() | ||
215 | { | 216 | { | ||
216 | 217 | | |||
217 | } | 218 | } | ||
218 | 219 | | |||
219 | WidgetTreeWidget::WidgetTreeWidget(QWidget *parent, Options options) | 220 | WidgetTreeWidget::WidgetTreeWidget(QWidget *parent, Options options) | ||
220 | : QTreeWidget(parent), d(new Private(options)) | 221 | : QTreeWidget(parent), d(new Private(options)) | ||
221 | { | 222 | { | ||
223 | KexiStyle::setupFrame(this); | ||||
222 | setRootIsDecorated(false); | 224 | setRootIsDecorated(false); | ||
223 | setHeaderLabels(QStringList() << xi18n("Widget name") << xi18nc("Widget's type", "Type")); | 225 | setHeaderLabels(QStringList() << xi18n("Widget name") << xi18nc("Widget's type", "Type")); | ||
224 | installEventFilter(this); | 226 | installEventFilter(this); | ||
225 | 227 | | |||
226 | if (!(d->options & DisableSelection)) { | 228 | if (!(d->options & DisableSelection)) { | ||
227 | setSelectionMode(ExtendedSelection); | 229 | setSelectionMode(ExtendedSelection); | ||
228 | connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(slotSelectionChanged())); | 230 | connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(slotSelectionChanged())); | ||
229 | } | 231 | } | ||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |