Commit graph

11221 commits

Author SHA1 Message Date
Martin Gräßlin
a63ca0c311 Fix linking and includes
Seems like there were some changes, we need more explicit linking.
2013-10-02 15:23:56 +02:00
Martin Gräßlin
9a298af09b Adjust kwin/killer to changes regarding KMessageBox
The wid specific methods got moved back into KMessageBox, so we do
not need the ipc framework any more.
2013-10-02 15:08:25 +02:00
Martin Gräßlin
23a354f4d8 Remove WA_PaintOnScreen attribute from decoration widget
With this attribute set the QPainter on the widget() never gets active
in non composited rendering and thus the decoration does not get rendered
at all.
2013-10-02 07:49:54 +02:00
Martin Gräßlin
93a94d3f1f Welcome back decoration KCModule!
And with that all kwinkcms are ported modulo kwincompositing which
is going to be replaced.
2013-10-01 14:05:59 +02:00
Martin Gräßlin
d1559341d6 [kcmdeco] Adjust linking for the KCM 2013-10-01 14:05:59 +02:00
Martin Gräßlin
9013f4ac8f [kcmdeco] Use QtQuick2 for the decoration preview list
This introduces quite some changes. We cannot include a QQuickView
directly in the QWidget based UI as a replacement for the
QDeclarativeView used before.

Instead a QScrollArea is used as replacement for the view and a
QQuickView is embedded into a widget container in the scroll area's
view port. This allows us to keep the existing semantic of having a
native scroll bar synced with the list view. It might be an idea to
change this to QtQuickControls in future.

As the list view is now only inside the scroll area we do not need to
pass the slider width to the root context and can by that more easily
calculate the width of one decoration.
2013-10-01 14:05:59 +02:00
Martin Gräßlin
9caba1cb8d [kcmdeco] Fix finding of all Aurorae themes 2013-10-01 14:05:59 +02:00
Martin Gräßlin
0288f42bc0 [kcmdeco] Handle reset of factory in new way
Reset on the factory cannot be invoked directly anymore. The factory
connects to change signals and emits a signal in case the decorations
need to be re-created. So we need to connect to this signal whenever
we expect that a change might trigger a recreation.
2013-10-01 14:05:59 +02:00
Martin Gräßlin
95bf0bb84f [kcmdeco] Add override to all virtual methods in preview.h
One method changed, so make sure it hits a compile error if we
change another one.
2013-10-01 14:05:59 +02:00
Martin Gräßlin
127d68486d [kcmdeco] Drop componentData() 2013-10-01 14:05:59 +02:00
Martin Gräßlin
f402fb9ea2 [kcmdeco] No QStringLiteral in a Q_FOREACH
Interesting compile error. Switching to modern for loop fixes the
issue.
2013-10-01 14:05:59 +02:00
Martin Gräßlin
0efe2462ee [kcmdeco] kcmshell4 -> kcmshell5 2013-10-01 14:05:59 +02:00
Martin Gräßlin
fe0493e63d [kcmdeco] Adjust includes 2013-10-01 14:05:58 +02:00
Martin Gräßlin
bd60db95f0 [kcmdeco] Adjust to new KAboutData 2013-10-01 14:05:58 +02:00
Martin Gräßlin
a4f55070f2 [kcmdeco] KIcon -> QIcon::fromTheme 2013-10-01 14:05:58 +02:00
Martin Gräßlin
2ff2164ba0 [kcmdeco] Use KConfigLoader instead of Plasma::ConfigLoader 2013-10-01 14:05:58 +02:00
Martin Gräßlin
56722972a7 [kcmdeco] Adjust to kdecoration changes
There are no unstable classes any more.
2013-10-01 14:05:58 +02:00
Martin Gräßlin
8681c69d60 [kcmdeco] slots/signals -> Q_SLOTS/Q_SIGNALS 2013-10-01 14:05:58 +02:00
Martin Gräßlin
8055cde910 [aurorae] Plastik theme transits to QtQuick 2 2013-10-01 14:05:58 +02:00
Martin Gräßlin
fbe5a497b4 [aurorae] Fix locating the config file of aurorae themes
Installed to GenericDataLocation and not DataLocation.
2013-10-01 14:05:58 +02:00
Martin Gräßlin
cd6fadc84c [aurorae] Change QML for themes to QtQuick 2
Needed for getting proper previews in the QtQuick 2 based kcm.
Obviously this breaks Aurorae as Aurorae is not yet migrated to
QtQuick 2. But there is no more broken than broken anyway.
2013-10-01 14:05:50 +02:00
Martin Gräßlin
97572f3dbb [kcmtabbox] kcmshell4 -> kcmshell5 2013-10-01 07:27:21 +02:00
Martin Gräßlin
ea0233df3b Welcome back KCM to configure Alt+Tab and friends 2013-10-01 07:17:27 +02:00
Martin Gräßlin
ffd1bb1dec [kcmtabbox] Adjust target link libraries to get it compile again 2013-10-01 07:16:56 +02:00
Martin Gräßlin
db89652175 [kcmtabbox] Preview goes QtQuick
QQuickView instead of a QDeclarativeView. As background a white element
is used.
2013-10-01 07:15:11 +02:00
Martin Gräßlin
06033f1263 [kcmtabbox] Fix includes 2013-09-30 15:13:14 +02:00
Martin Gräßlin
81301d42ac [kcmtabbox] slots -> Q_SLOTS 2013-09-30 15:12:36 +02:00
Martin Gräßlin
5c23434b6d [kcmtabbox] Adjust to new API
* no componentData()
* no insertCatalog()
2013-09-30 15:11:34 +02:00
Martin Gräßlin
a560147d70 [kcmtabbox] KIcon -> QIcon::fromTheme 2013-09-30 15:09:07 +02:00
Martin Gräßlin
3a54d6bd42 [kcmtabbox] Adjust to new global shortcut handling
* KAction -> QAction
* init of KActionCollection
2013-09-30 15:07:49 +02:00
Martin Gräßlin
2baa345d10 [kcm-tabbox] Use a QQuickPaintedItem for the ThumbnailItem 2013-09-30 15:02:58 +02:00
Sebastian Kügler
ab08d3da9b Don't look for plasma headers under KDE 2013-09-30 11:32:16 +02:00
Martin Gräßlin
4ddaea4824 Welcome back KWin Scripts KCM!
Currently not of much use as installing a local script is disabled and
GHNS dialog seems broken.
2013-09-30 11:19:36 +02:00
Martin Gräßlin
c118b1147d [kwinscripts] Adjust target link libraries for kwinscripts KCM 2013-09-30 11:19:02 +02:00
Martin Gräßlin
2e47f34398 [kwinscripts] Disable installing a local script for the moment
Plasma::Package changed in a way that it's not just a trivial change
to get it compile again.
2013-09-30 11:17:40 +02:00
Martin Gräßlin
469a0c255c [kwinscript] Adjustments to obsoleted members
* KAboutData
* removing insert catalog
* KIcon -> QIcon::fromTheme
* missing moc
2013-09-30 11:16:36 +02:00
Martin Gräßlin
5bdb960413 [kwinscripts] kcmshell4 -> kcmshell5 2013-09-30 11:14:33 +02:00
Martin Gräßlin
6ada27e294 [kwinscripts] slots -> Q_SLOTS 2013-09-30 11:14:05 +02:00
Martin Gräßlin
2017f82670 [kwinscripts] KFileDialog -> QFileDialog 2013-09-30 11:13:38 +02:00
Martin Gräßlin
3b07653613 Make more methods in kwin/utils.cpp available to the rules KCM
Needed as the kcm includes cursor.

Sorry Eike ;-)
2013-09-30 10:56:56 +02:00
Martin Gräßlin
098b8ef75d Welcome back kwinrules KCM! 2013-09-30 09:57:25 +02:00
Martin Gräßlin
98b5f64c38 [kwinrules] Adjust linking of kwinrules KCM to Qt5/KF5 2013-09-30 09:56:35 +02:00
Martin Gräßlin
dd0537fd49 [kwinrules] kcmshell4 -> kcmshell5 2013-09-30 09:55:38 +02:00
Martin Gräßlin
689b221583 [kwinrules] workaround for assert in QFormLayout 2013-09-30 09:55:13 +02:00
Martin Gräßlin
5b1f4a4131 [kwinrules] Use KWin::Cursor to map Qt::CursorShape to an X cursor
Needed for grabbing the pointer.
2013-09-30 09:53:56 +02:00
Martin Gräßlin
7d21d612fe [kwinrules] Use native event filter for mouse button release detection
The event filtering on Qt level does not work any more. The information
is not updated properly. Grabbing the mouse through QWidget resets the
cursor shape to the default shape, so it cannot be used.

As we don't want Qt to ever see the events it's a good idea to use a
native event filter to filter the events away before they are delivered
to Qt.

To simplify the handling the grabber widget is put into a QScopedPointer.
2013-09-30 09:53:01 +02:00
Martin Gräßlin
3956c73c53 [kwinrules] KIcon -> QIcon::fromTheme 2013-09-30 08:44:57 +02:00
Martin Gräßlin
6dd47092f7 [kwinrules] drop componentData() 2013-09-30 08:44:16 +02:00
Martin Gräßlin
e2afaacdb6 [kwinrules] Adjust to new KAboutData 2013-09-30 08:43:40 +02:00
Martin Gräßlin
e8e8c210b6 [kwinrules] KFileDialog -> QFileDialog 2013-09-30 08:43:09 +02:00