Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_workspace_chooser.cpp
Context not available. | |||||
27 | #include <QGridLayout> | 27 | #include <QGridLayout> | ||
---|---|---|---|---|---|
28 | #include <QLineEdit> | 28 | #include <QLineEdit> | ||
29 | #include <QLabel> | 29 | #include <QLabel> | ||
30 | #include <KisKineticScroller.h> | ||||
30 | 31 | | |||
31 | #include <klocalizedstring.h> | 32 | #include <klocalizedstring.h> | ||
32 | 33 | | |||
33 | #include <KoResourceItemChooser.h> | 34 | #include <KoResourceItemChooser.h> | ||
35 | #include <KoResourceItemView.h> | ||||
34 | #include <KoResourceServerAdapter.h> | 36 | #include <KoResourceServerAdapter.h> | ||
35 | #include <resources/KoResource.h> | 37 | #include <resources/KoResource.h> | ||
36 | 38 | | |||
Context not available. | |||||
75 | painter->fillRect(option.rect, option.palette.base()); | 77 | painter->fillRect(option.rect, option.palette.base()); | ||
76 | } | 78 | } | ||
77 | 79 | | |||
78 | | ||||
79 | painter->drawText(option.rect.x() + 5, option.rect.y() + painter->fontMetrics().ascent() + 5, workspace->name()); | 80 | painter->drawText(option.rect.x() + 5, option.rect.y() + painter->fontMetrics().ascent() + 5, workspace->name()); | ||
80 | | ||||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | KisWorkspaceChooser::KisWorkspaceChooser(KisViewManager * view, QWidget* parent): QWidget(parent), m_view(view) | 83 | KisWorkspaceChooser::KisWorkspaceChooser(KisViewManager * view, QWidget* parent): QWidget(parent), m_view(view) | ||
Context not available. | |||||
120 | widgets.itemChooser->showTaggingBar(false); | 120 | widgets.itemChooser->showTaggingBar(false); | ||
121 | widgets.saveButton = new QPushButton(i18n("Save")); | 121 | widgets.saveButton = new QPushButton(i18n("Save")); | ||
122 | 122 | | |||
123 | KisConfig cfg(true); | | |||
124 | widgets.itemChooser->configureKineticScrolling(cfg.kineticScrollingGesture(), | | |||
125 | cfg.kineticScrollingSensitivity(), | | |||
126 | cfg.kineticScrollingScrollbar()); | | |||
127 | | ||||
128 | widgets.nameEdit = new QLineEdit(this); | 123 | widgets.nameEdit = new QLineEdit(this); | ||
129 | widgets.nameEdit->setPlaceholderText(i18n("Insert name")); | 124 | widgets.nameEdit->setPlaceholderText(i18n("Insert name")); | ||
130 | widgets.nameEdit->setClearButtonEnabled(true); | 125 | widgets.nameEdit->setClearButtonEnabled(true); | ||
Context not available. |