Commit Graph

12204 Commits

Author SHA1 Message Date
Aleix Pol
1c22bb4033 Add more cmake porting rules 2013-12-05 19:32:35 +01:00
Aleix Pol
23eacffcb3 Add more information about interception warnings
It's good to know who is trying to be naughty
2013-12-05 19:32:14 +01:00
Aleix Pol
6d8d2fbde8 Remove unneeded check
it was already being done in setAlignment anyway
2013-12-05 19:31:46 +01:00
Andrea Scarpino
b8e34cffe2 Revert "Revert "QQmlAbstractUrlInterceptor is now public""
This reverts commit 4d38b136ad.
Sorry for the mess.
2013-12-04 12:38:38 +01:00
Andrea Scarpino
9a3f028599 This is not needed; also QQmlAbstractUrlInterceptor is public again https://codereview.qt-project.org/#change,73153 2013-12-04 12:36:30 +01:00
Andrea Scarpino
4d38b136ad Revert "QQmlAbstractUrlInterceptor is now public"
This reverts commit 5540fdeaa5.
2013-12-04 08:21:45 +01:00
Sebastian Kügler
ff40813454 Crash recovery for plasma-shell
We restart plasma-shell after crashes. When it crashes subsequently on startup,
and more than two times in a row, we give up in order to not endlessly loop.
Once the shell process stays alive for at least 15 seconds, we reset the crash
counter, so a later crash, at runtime rather than on startup will still be
recovered from.

This logic is very similar as to how kwin handles it.

DIGEST:
2013-12-04 04:15:24 +01:00
Àlex Fiestas
5540fdeaa5 QQmlAbstractUrlInterceptor is now public
https://codereview.qt-project.org/#change,65626
2013-12-02 15:59:47 +01:00
Andrea Scarpino
2495df8b01 Allow builds with Qt 5.2
REVIEW:114239
2013-12-02 12:27:34 +01:00
David Edmundson
9462866755 Set geometry to fill each screen correctly
DesktopView incorrectly filled the geometry of screen()
screen() will be the screen of the parent shell, not the correct
screen.

As we are using QScreen, shellcorona is ported to use that instead
of QDesktopWidget.

REVIEW: 114149
2013-11-28 14:46:18 +01:00
l10n daemon script
5f151c691d SVN_SILENT made messages (.desktop file) 2013-11-28 04:08:15 +00:00
David Edmundson
66094ef733 Remove X-Plasma-DefaultSize from applet service type 2013-11-27 17:04:17 +01:00
David Edmundson
52a86853a2 Remove unused default size property in example plasmoids 2013-11-27 17:02:35 +01:00
Martin Klapetek
13d1f5568f Remove KLocale bindings
KLocale is now kde4support and we have QLocale QML bindings. This patch
removes the KLocale bindings from plasma-framework (they are not used
anywhere anyway).

If we miss something from KLocale in QLocale, we should upstream it.

REVIEW: 114150
2013-11-27 16:28:46 +01:00
Martin Klapetek
c29773656e Make isToday compare actual dates
So we don't have to construct awkward strings everytime.
2013-11-27 00:23:41 +01:00
Martin Klapetek
6eea4da70d Use proper index validity checking 2013-11-27 00:22:57 +01:00
Martin Klapetek
cb4d7e8b4c Emit proper signals everywhere 2013-11-27 00:22:08 +01:00
Martin Klapetek
e80e2960c6 Shuffle the code around a bit
These methods are in the middle of other together-related methods, for
no reason. Looks like corn flakes in the middle of beer. Sure, you can
do that, but why would you. Actually I should try that.
2013-11-27 00:21:22 +01:00
Martin Klapetek
33f2670f07 Remove empty Q_SIGNALS & Q_SLOTS 2013-11-27 00:13:44 +01:00
Martin Klapetek
f9cca29bd1 Make MonthMenu items not hardcoded
That's just wrong.
2013-11-27 00:07:30 +01:00
Martin Klapetek
5c6b1c9251 Rename isTodayMonth() to today()
Whoever named the method like that should be slapped over his fingers.
2013-11-26 17:28:15 +01:00
Martin Klapetek
ab97884c00 Calculate days before current month properly 2013-11-26 16:24:04 +01:00
Martin Gräßlin
b80cf620cf Use find_package for KActivities instead of having it in KF5 section
This is how kde-workspace is finding KActivities and it got tested to
fix the build problems on build.kde.org.
2013-11-26 08:14:43 +01:00
Martin Klapetek
d1dc311345 Reinstate the month name capitalization
Some CLDR (locale) data used by Qt have standalone month names
starting with lower-case letters. So if we want to provide consistent
look across locales, we need to capitalize it ourselves

See https://bugreports.qt-project.org/browse/QTBUG-35100
2013-11-25 17:00:19 +01:00
Martin Klapetek
580d7d198a Revert capitalizing the month's name
That's a locale thing/bug.
2013-11-25 13:42:54 +01:00
Martin Klapetek
ff47006845 Add some docs to Calendar binginds 2013-11-25 13:24:49 +01:00
Martin Klapetek
224e1a620b Make the calendar applet follow current locale with first day in week
Also rename startDay property to firstDayOfWeek property so it's more
clear what it does. Handling the first day of week is changed a bit too
as QML uses 0 for Sunday while QDate uses 7 for Sunday, so the
getter/setter is accomodated to that fact and converts from 0 to 7 on
setting and vice-versa in the getter.

REVIEW: 114099
2013-11-25 13:24:30 +01:00
l10n daemon script
dca0a1119b SVN_SILENT made messages (.desktop file) 2013-11-25 04:12:18 +00:00
l10n daemon script
7726bc82e9 SVN_SILENT made messages (.desktop file) 2013-11-24 04:10:26 +00:00
Aleix Pol
6b8544f9a6 KParts is a Kross dependency now 2013-11-22 13:12:49 +01:00
Aleix Pol
f187db1e86 Remove KDE4Support dependency from plasma-frameworks (almost)
Stop using classes from kde4support:
- KComponentData is deprecated, it will be using QCoreApplication::
applicationName() and QCoreApplication::applicationVersion(). Of course,
this means that the existing shells will have to be ported. I have no
problem with doing that port myself, if I'm told where to look into.
- Drop usage of KLocale, ported to QLocale
- Drop usage of KStandardDirs, ported to QStandardPaths
- Drop usage of KIcon, ported to QIcon

Furthermore, there's a module in src/declarativeimports/locale that IIUC
exposes KLocale bindings to QML. A specific plan to port it should happen
as well.

REVIEW: 113920
2013-11-22 13:03:29 +01:00
Sebastian Kügler
082e6c65e5 Small example how to dumb-port from qDebug to qCDebug 2013-11-20 04:37:47 +01:00
Sebastian Kügler
ccca440859 Default to BottomEdge in Dialog
Also add a little bit of debugging to check sizing.
2013-11-20 04:05:35 +01:00
Aleix Pol
e2b40feef6 Add conversions for deprecated macros 2013-11-18 15:22:11 +01:00
Ivan Čukić
655769c8a4 Fixed the assertion 2013-11-18 14:23:58 +01:00
Ivan Čukić
3dbb992e61 Killing containments that do not belong to any activity
Removing the legacy migration code which guesses what to do with
containments that are not assigned to an activity.

REVIEW:113919
2013-11-18 12:54:19 +01:00
Ivan Čukić
0fb9549dea Not NotRunning is not the same as Running 2013-11-18 11:08:10 +01:00
Aleix Pol
f97f506acb Remove unused variables from the cmake scripts 2013-11-15 17:00:56 +01:00
Aleix Pol
2cb4ebd6f5 Code cleanup
Remove unused includes
Remove void code logic (KCMUTILS_LIBS was always empty anyway)
2013-11-15 16:56:17 +01:00
Aleix Pol
0fa21b4af5 Iterate over the cmake scripts
Prefer using imported targets rather than cmake variables.
2013-11-15 16:46:59 +01:00
Aleix Pol
e9d7e823ef Improve porting scripts
Prefer lowercase commands
Add cmake variables translations
Disable kde4_add_ui_files translation, we don't have a good macro for this
yet.
2013-11-15 16:22:50 +01:00
Aleix Pol
7088c9eb0d Deprecate plasma_add_plugin 2013-11-14 17:42:26 +01:00
Aleix Pol
3ef13c53dc Remove predicates on cmake end commands
http://techbase.kde.org/Policies/CMake_Coding_Style#End_commands
2013-11-14 17:25:10 +01:00
Aleix Pol
19d6fab067 Add a tool to follow KDE cmake coding style with regard to end commands
Removes the predicate from all of them, especially on else it was very
annoying.

http://techbase.kde.org/Policies/CMake_Coding_Style#End_commands
2013-11-14 17:22:26 +01:00
Mark Gaiser
d56f690fcf Add license to calendar component classes. 2013-11-13 13:41:41 +01:00
Bhushan Shah
80cb807aaa Make plasma-framework build without tests
REVIEW: 113831
2013-11-13 12:04:22 +05:30
Sebastian Kügler
085e232641 Export MonthMenu, calendar 2013-11-13 06:05:52 +01:00
Sebastian Kügler
4337daa38e Various layout improvements 2013-11-13 05:28:42 +01:00
Sebastian Kügler
95dc36f0ee large spacing is defaultFont.mSize().height 2013-11-13 05:26:18 +01:00
Sebastian Kügler
d248fe1955 clean up a bit 2013-11-12 05:56:10 +01:00