Commit Graph

189 Commits

Author SHA1 Message Date
Marco Martin
6a190670ba create the Layout attached object in init()
always create it and create it immediately.
this way it's possible for other c++ users to find it
2014-08-27 13:37:56 +02:00
Marco Martin
49bb894a21 use QUrl::fromLocalFile 2014-08-27 13:11:26 +02:00
Marco Martin
2a575c810d noise-- 2014-08-27 12:22:22 +02:00
Marco Martin
20906f6b0d allow the private imports relative to alloewdPath 2014-08-27 12:20:39 +02:00
Marco Martin
ccab23fccb the config view can load files from the applet pkg 2014-08-26 18:11:11 +02:00
Marco Martin
2b7d633687 Merge branch 'mart/DialogBackgroundHints'
REVIEW:119860
2014-08-22 16:56:08 +02:00
Jonathan Riddell
8596689f2c add version cmake file for PlasmaQuick
add version cmake file for PlasmaQuick
this allows Plasma Desktop to be able to set a required KF5 version

REVIEW:119881
2014-08-21 18:18:01 +02:00
Marco Martin
f74bf9a8b8 don't call updateTheme 2 times 2014-08-21 15:49:29 +02:00
Marco Martin
fcb8c85951 remove dead code 2014-08-21 15:47:37 +02:00
Marco Martin
e0fd14903c fix comment 2014-08-21 14:55:16 +02:00
Marco Martin
a135c4de7d correctly enable/disable shadow 2014-08-20 18:01:47 +02:00
Marco Martin
c7d16008d7 centralize theme enable/disable 2014-08-20 16:46:46 +02:00
Marco Martin
38bcec95b0 a simple way to enable/disable background 2014-08-20 16:33:38 +02:00
Marco Martin
6dcd361943 remoev the extra screenshot file definition 2014-08-15 18:12:59 +02:00
David Edmundson
5478c7e3c2 Add more missing @class and @short descriptors 2014-08-12 23:15:57 +02:00
Marco Martin
d5ef46d43d add file definition for colors 2014-08-11 17:54:45 +02:00
Marco Martin
0d3a814e20 Don't leak
we were creating new packagestructures on each package creation
and never deleting them, causing a pretty big leak.

now keep a single instance of the structures, with prototype packages.
members are static for binary compatibility.
i would go for max one bic change in this library that's when and if
this library will be made pubic.

Patch by Aaron Seigo
2014-08-08 14:04:46 +02:00
Marco Martin
5f1abfbbe3 add definition for a screenshot 2014-08-08 13:29:46 +02:00
Aaron Seigo
9ee252475f setRequired actually works now 2014-08-08 08:25:26 +02:00
Aleix Pol
d7a7a4fb83 Use Qt API for figuring out the dialog screen
At the moment it's trying to translate the item position and iterating
through all screens, but we can get the screen through the item's window.

REVIEW: 119603
2014-08-05 19:48:28 +02:00
Marco Martin
11311f61e9 treat desktop location as bottom edge
swap edge only when the location is left or right
fixes tooltip position for things in desktop, like Folder icons

BUG:337112
2014-07-09 11:40:34 +02:00
Eike Hein
4153a2c8ee Catch popup menus by window type, not class name.
The latter breaks for subclasses of QMenu.

Follow up to review 118361.
CCMAIL:martin.klapetek@gmail.com

Fixes libkonq menus opened from Folder popup dialogs closing the
dialog.
BUG:336702
2014-06-25 16:17:26 +02:00
David Edmundson
dc79190b8d Fix dialog's check for isTooltip
Qt::Tooltip is a mix of other flags (0x0001101)

using a simple & is not correct as any Window will have (0x0000001) set
and the bitwise & operation will return a non-zero value

REVIEW: 118906
2014-06-24 21:17:58 +02:00
Marco Martin
6603334b9b make the view's qml know about the wallpaper
better giving the access to the view qml rather than the containment

Reviewed by: Bhushan Shah <bhush94@gmail.com>
2014-06-20 19:04:09 +02:00
Vishesh Handa
d3de99eb1e AppletQuickItem: Do not remember the popup dialog size
The popup dialog can currently never be resized, so it doesn't make
sense to record its height in a config file. Additionally, this also
causes problems when applet writers change the size of their plasmoid.
Since the old size is saved in the config file, it is shown with the old
dimensions instead of the new ones.

REVIEW: 118849
BUG: 336070
2014-06-20 17:31:57 +02:00
Kai Uwe Broulik
549361cb42 Fix typo 2014-06-19 20:12:51 +02:00
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