Commit Graph

163 Commits

Author SHA1 Message Date
Marco Martin
4f14f4ceb9 "configure" icon for config dialogs
BUG:336461
2014-06-19 20:03:31 +02:00
Marco Martin
1f633ad0a1 fix tooltip resize in folderview
also, detach from old layouts if the mainitem changes
2014-06-17 21:55:45 +02:00
Marco Martin
751b773db2 if the applet has width/height in root, use it
CCBUG:336291
2014-06-16 14:35:04 +02:00
Marco Martin
c44c3b30e2 off by one in positioning
position the dialog at exactly the right-most edge of the screen
it was off by exactly one pixel
2014-06-13 13:54:23 +02:00
Marco Martin
71cf5a3e9a set window mask when composite is off 2014-06-10 15:22:12 +02:00
Marco Martin
15280e336f resize immediately after applying max height
another async x11 weirdness, now the height stays correctly synced
2014-06-10 14:13:41 +02:00
Marco Martin
17bc7897e3 resize the framesvg in resizeevent
this makes it as synced as possible with the window
will still be behind the window size by exactly one frame
but at least is ensured is no more than one
2014-06-10 13:48:30 +02:00
Marco Martin
e558e44658 export the applet we're configuring 2014-06-09 13:24:52 +02:00
Marco Martin
9c642fd700 use correct translation domain names 2014-06-06 14:41:21 +02:00
Marco Martin
549fb7ce51 swap setupbindings and setTranslationDomain 2014-06-05 14:50:31 +02:00
Marco Martin
f457c5254a use the applet plugin domain instead 2014-06-05 14:31:52 +02:00
Marco Martin
bc8e285a16 set translation domain as the corona plugin name
applet configuration dialogs may need to always use i18nc :/
2014-06-05 14:08:19 +02:00
Marco Martin
7bc669f7d8 be quiet 2014-06-05 14:01:52 +02:00
Marco Martin
30936ea2be set default translation domain as corona pluginname 2014-06-05 13:40:25 +02:00
Marco Martin
d984a60a2d set translation domain for applets
their default translation domain has the same name as the plugin name
(as the catalog in plasma1)
2014-06-05 13:33:07 +02:00
David Edmundson
3994890bff Remove reference to QApplication 2014-06-04 18:51:13 +02:00
Marco Martin
1ce72838a5 update size hints if enabled borders change
final size hints depend from enabled borders, so they have
to be updated
2014-06-04 18:44:28 +02:00
Marco Martin
78c779c91d remove the rewrite for platform specific stuff
don't bomb if m_engine->importPathList() changes at runtime
2014-05-30 19:47:06 +02:00
Marco Martin
ab1ffcde8b as Dialog, it searches for a Layout for size hints 2014-05-29 16:00:10 +02:00
Marco Martin
63e78f0901 save and restore applets config dialogs 2014-05-29 12:48:49 +02:00
Martin Klapetek
ce166ca451 Don't hide Dialog when opening QMenu from it
When plasmoid in a popup (applet opened from panel) is opening a QMenu,
the popup itself hides because it looses focus. There's currently no way
to obtain the Dialog the applet popup is in and pass it to the QMenu
window as a parent, so we have to go this way.

REVIEW: 118361
BUG: 335422
2014-05-28 12:04:21 +02:00
Aleix Pol
036be80400 readability++
QWeakPointer -> QPointer
Remove .data() when not needed
2014-05-27 17:25:25 +02:00
Aleix Pol
3d77ac5008 Make AppletQuickItem return QQuickItems
It was returning QObjects on most places and it didn't make much sense
since since it was just expecting the API users to qobject_cast to
QQuickItem to do anything with these. Considering that fullRepresentation
can be anything other than a graphic item doesn't sound good anyway.
2014-05-27 16:59:48 +02:00
Aleix Pol
ee3deabb48 We only want to load the new Desktop.qml only in case we're a DesktopView
Therefore, this has to be moved to DesktopView
2014-05-27 16:59:48 +02:00
Marco Martin
de73bbb278 Revert "don't expand if still creating the representation"
This reverts commit c3a38d3434.
2014-05-27 12:37:56 +02:00
Marco Martin
c3a38d3434 don't expand if still creating the representation
when qml object gets created with an async incubator,
events are still processed, so we have to guard gainst
double triggers that can lead to creating the
extended representation again
BUG:335406
2014-05-27 12:24:35 +02:00
Marco Martin
d4b4a9558f use the interceptor on views too
relax its rules a bit and alter it to make it work with shell packages too
2014-05-23 20:03:41 +02:00
Marco Martin
d2d61c4da3 reposition when resizing if there is visualParent
BUG:334970
BUG:334964
2014-05-21 15:45:21 +02:00
Marco Martin
fd87694c8d fix build 2014-05-19 18:29:41 +02:00
Marco Martin
09453cfe89 parentHasFocus false if Qt::WindowDoesNotAcceptFocus
BUG:334819
2014-05-15 17:44:13 +02:00
Marco Martin
5600cb0fea dismiss on focus out if a View was clicked
BUG:334810
2014-05-15 14:40:03 +02:00
Aleix Pol
3f78d130a5 Improve readability
QWeakPointer -> QPointer
2014-05-14 15:14:32 +02:00
Martin Gräßlin
02917b2335 Do not set a custom format on QQuickWindows
All QQuickWindows share a default format. By setting a custom format
it overwrites the default and this results in a format without a
stencil buffer being requested resulting in possible rendering errors.

REVIEW: 118122
2014-05-14 13:52:29 +02:00
Marco Martin
f5369d6349 resize the framesvg to the proper size 2014-05-13 19:41:56 +02:00
Marco Martin
91e6297114 export plasmoid.rootItem 2014-05-09 13:12:38 +02:00
Marco Martin
79bf8bf138 no compactRepresentationCheck if not ready yet 2014-05-08 15:49:36 +02:00
Aleix Pol
2f027d4348 Remove pointless casts 2014-05-08 15:28:09 +02:00
Marco Martin
2d94312f97 support config for applets children of applets 2014-05-07 13:09:35 +02:00
Aleix Pol
556c1e321a Remove random qDebug output
Makes it easier to spot the actual problems on the output. If there's
something that's actually indicating a problem, we should make it a
qWarning.
2014-05-06 19:57:37 +02:00
Marco Martin
445081843c this assert doesn't make much sense 2014-05-06 10:52:57 +02:00
Eike Hein
2591685579 Emit signal when hiding due to focus loss to a non-related window. 2014-04-30 19:17:14 +02:00
Eike Hein
3ebbedead2 Also consider parent windows when evaluating focus loss for dialog hide. 2014-04-30 19:14:55 +02:00
Eike Hein
000d49463b Don't hide when focus moves to a child window.
REVIEW:117897
2014-04-30 15:04:16 +02:00
Aleix Pol
94dc5c30c9 Remove unneeded statements 2014-04-28 17:18:11 +02:00
Marco Martin
3df85902ec adjust mainItem position to borders
also in syncToMainItemSize() we need to reposition mainItem,
not only in the other way around syncMainItemToSize()
2014-04-28 16:54:04 +02:00
Marco Martin
042c4d815a give a default icon
give the "plasma" icon to dialogs.
It will be never show, but windowmanagers should complain less
2014-04-28 16:46:19 +02:00
Aleix Pol
9cd8f9fbeb Port plasma code to PLASMA_RELATIVE_DATA_INSTALL_DIR 2014-04-27 23:06:32 +02:00
Aleix Pol
e6f1fec0c7 Install all plasma files in a prefix/share/plasma directory
At the moment, we could say that plasma is co-installable by chance,
it's only working because KF5 dropped the apps relative directory.
This change introduces a PLASMA_RELATIVE_DATA_INSTALL_DIR that will
be available to know where in share the components are and
PLASMA_DATA_INSTALL_DIR to know where data has to be installed to.

Reviewed by David Edmundson

CCMAIL: plasma-devel@kde.org
2014-04-27 17:14:22 +02:00
Alex Merry
c4f408a334 Fix Plasma_INCLUDE_INSTALL_DIR variable in (another) config module
This should have been part of the INCLUDE_INSTALL_DIR to
KF5_INCLUDE_INSTALL_DIR commit.
2014-04-26 13:16:21 +01:00
Alex Merry
2ef3b32dcd Use KF5_INCLUDE_INSTALL_DIR and KF5_INSTALL_TARGETS_DEFAULT_ARGS
This is instead of INCLUDE_INSTALL_DIR and INSTALL_TARGETS_DEFAULT_ARGS,
which will lose the "KF5" suffix from the include path.
2014-04-26 12:14:03 +01:00