Skip to content

Commit

Permalink
Merge pull request #100 from arcan1s/development
Browse files Browse the repository at this point in the history
Release 3.2
  • Loading branch information
arcan1s committed Jul 9, 2016
2 parents 77675a8 + 927e93b commit 53918f4
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 146 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
Ver.3.2.0:
+ custom formatters (#91)
+ add backend tests (#95)
+ add OWM weather provider for ExtWeather. It can be switched by using X-AW-Provider (ApiVer 3)
+ add DBus timeout for calls (#96)
+ add macros support (`$aw_macro` and `$aw_macro_*` for calls)
- fix vertical alignment (#94)
- fix bug with invalid updates on `X-AW-Interval=1` for ExtScript and ExtUpgrade
- fix bug with missing derivate vaules in ExtQuotes
- fix possible plasma crash (#96)
- fix possible undefined behaviour if no extensions was found by name
* split dataengine sources to own library
* allow to use screened double brakets inside functions

Ver.3.1.2:
+ add standalone widget configuration example
+ new tag tstime
Expand Down
4 changes: 2 additions & 2 deletions packages/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=plasma5-applet-awesome-widgets
_pkgname=awesome-widgets
pkgver=3.1.2
pkgver=3.2.0
pkgrel=1
pkgdesc="Collection of minimalistic Plasmoids which look like Awesome WM widgets (ex-PyTextMonitor)"
arch=('i686' 'x86_64')
Expand All @@ -17,7 +17,7 @@ optdepends=("catalyst: for GPU monitor"
makedepends=('cmake' 'extra-cmake-modules' 'python')
source=(https://github.com/arcan1s/awesome-widgets/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
install=${pkgname}.install
md5sums=('99514bf6d1a5ca8660dd0210ee58af28')
md5sums=('81a85890d519bd8c5791d0d99cffc9c1')
backup=('etc/xdg/plasma-dataengine-extsysmon.conf')

prepare() {
Expand Down
89 changes: 0 additions & 89 deletions patches/fix-dbus-calls.patch

This file was deleted.

15 changes: 0 additions & 15 deletions patches/fix-race-condition.patch

This file was deleted.

26 changes: 0 additions & 26 deletions patches/fix-vertical-alignment.patch

This file was deleted.

21 changes: 12 additions & 9 deletions patches/qt5.4-qml-dialogs-qtconcurrent-and-qloggingcategory.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
diff --git a/sources/awesome-widget/package/contents/ui/advanced.qml b/sources/awesome-widget/package/contents/ui/advanced.qml
diff --git a/sources/awesome-widget/package/contents/ui/advanced.qml b/sources/awesome-widget/package/contents/ui/advanced.qml
index 01bcd58..1ec7ba6 100644
--- a/sources/awesome-widget/package/contents/ui/advanced.qml
+++ b/sources/awesome-widget/package/contents/ui/advanced.qml
Expand Down Expand Up @@ -168,9 +168,9 @@ index 6263b30..5f61d2a 100644
}


-bool AWConfigHelper::exportConfiguration(QObject *nativeConfig,
-bool AWConfigHelper::exportConfiguration(const QObject *nativeConfig,
- const QString fileName) const
+void AWConfigHelper::exportConfiguration(QObject *nativeConfig) const
+void AWConfigHelper::exportConfiguration(const QObject *nativeConfig) const
{
- qCDebug(LOG_AW) << "Selected filename" << fileName;
-
Expand Down Expand Up @@ -302,17 +302,17 @@ index 912ac3d..dc51dfb 100644
virtual ~AWConfigHelper();
Q_INVOKABLE QString configurationDirectory() const;
Q_INVOKABLE bool dropCache() const;
- Q_INVOKABLE bool exportConfiguration(QObject *nativeConfig,
- Q_INVOKABLE bool exportConfiguration(const QObject *nativeConfig,
- const QString fileName) const;
- Q_INVOKABLE QVariantMap importConfiguration(const QString fileName,
- const bool importPlasmoid,
- const bool importExtensions,
- const bool importAdds) const;
+ Q_INVOKABLE void exportConfiguration(QObject *nativeConfig) const;
+ Q_INVOKABLE void exportConfiguration(const QObject *nativeConfig) const;
+ Q_INVOKABLE QVariantMap importConfiguration() const;
// dataengine
Q_INVOKABLE QVariantMap readDataEngineConfiguration() const;
Q_INVOKABLE void
Q_INVOKABLE bool
@@ -51,6 +47,7 @@ private:
void copySettings(QSettings &from, QSettings &to) const;
void readFile(QSettings &settings, const QString key,
Expand Down Expand Up @@ -356,7 +356,7 @@ diff --git a/sources/awdebug.cpp b/sources/awdebug.cpp
index eee61e1..9da8dad 100644
--- a/sources/awdebug.cpp
+++ b/sources/awdebug.cpp
@@ -20,13 +20,10 @@
@@ -20,15 +20,11 @@
#include "awdebug.h"


Expand All @@ -365,11 +365,14 @@ index eee61e1..9da8dad 100644
-Q_LOGGING_CATEGORY(LOG_DP, "org.kde.plasma.desktoppanel",
- QtMsgType::QtWarningMsg)
-Q_LOGGING_CATEGORY(LOG_ESM, "org.kde.plasma.extsysmon", QtMsgType::QtWarningMsg)
-Q_LOGGING_CATEGORY(LOG_ESS, "org.kde.plasma.extsysmonsources",
- QtMsgType::QtWarningMsg)
-Q_LOGGING_CATEGORY(LOG_LIB, "org.kde.plasma.awesomewidgets",
- QtMsgType::QtWarningMsg)
+Q_LOGGING_CATEGORY(LOG_AW, "org.kde.plasma.awesomewidget")
+Q_LOGGING_CATEGORY(LOG_DP, "org.kde.plasma.desktoppanel")
+Q_LOGGING_CATEGORY(LOG_ESM, "org.kde.plasma.extsysmon")
+Q_LOGGING_CATEGORY(LOG_ESM, "org.kde.plasma.extsysmonsources")
+Q_LOGGING_CATEGORY(LOG_LIB, "org.kde.plasma.awesomewidgets")


Expand All @@ -392,8 +395,8 @@ index 33192f7..46e2b1e 100644
find_package(Gettext REQUIRED)

# main qt libraries
-find_package(Qt5 5.4.0 REQUIRED COMPONENTS Core DBus Network Qml Widgets)
+find_package(Qt5 5.3.0 REQUIRED COMPONENTS Core DBus Network Qml Widgets)
-find_package(Qt5 5.4.0 REQUIRED COMPONENTS Core DBus Network Qml Test Widgets)
+find_package(Qt5 5.3.0 REQUIRED COMPONENTS Core DBus Network Qml Test Widgets)
add_definitions(
${Qt5Core_DEFINITIONS} ${Qt5DBus_DEFINITIONS} ${Qt5Network_DEFINITIONS}
${Qt5Qml_DEFINITIONS} ${Qt5Widgets_DEFINITIONS}
4 changes: 2 additions & 2 deletions patches/qt5.6-qversionnumber.patch
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ index 33192f7..339bb58 100644
find_package(Gettext REQUIRED)

# main qt libraries
-find_package(Qt5 5.6.0 REQUIRED COMPONENTS Core DBus Network Qml Widgets)
+find_package(Qt5 5.4.0 REQUIRED COMPONENTS Core DBus Network Qml Widgets)
-find_package(Qt5 5.6.0 REQUIRED COMPONENTS Core DBus Network Qml Test Widgets)
+find_package(Qt5 5.4.0 REQUIRED COMPONENTS Core DBus Network Qml Test Widgets)
add_definitions(
${Qt5Core_DEFINITIONS} ${Qt5DBus_DEFINITIONS} ${Qt5Network_DEFINITIONS}
${Qt5Qml_DEFINITIONS} ${Qt5Widgets_DEFINITIONS}
4 changes: 2 additions & 2 deletions sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ set(PROJECT_AUTHOR "Evgeniy Alekseev")
set(PROJECT_CONTACT "esalexeev@gmail.com")
set(PROJECT_LICENSE "GPL3")
set(PROJECT_VERSION_MAJOR "3")
set(PROJECT_VERSION_MINOR "1")
set(PROJECT_VERSION_PATCH "2")
set(PROJECT_VERSION_MINOR "2")
set(PROJECT_VERSION_PATCH "0")
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
# append git version if any
set(PROJECT_COMMIT_SHA "Commit hash" CACHE INTERNAL "")
Expand Down
1 change: 1 addition & 0 deletions sources/test/awtestlibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef AWTESTLIBRARY_H
#define AWTESTLIBRARY_H

#include <QPair>
#include <QStringList>


Expand Down
1 change: 1 addition & 0 deletions sources/test/testbatterysource.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define TESTBATTERYSOURCE_H

#include <QObject>
#include <QPair>


class BatterySource;
Expand Down
2 changes: 1 addition & 1 deletion sources/test/testdpplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void TestDPPlugin::test_desktops()
int current = plugin->currentDesktop();
int total = plugin->numberOfDesktops();
QVERIFY(total != 0);
QVERIFY(current < total);
QVERIFY(current <= total);

int number;
if (total == 1)
Expand Down
1 change: 1 addition & 0 deletions sources/test/testextweather.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define TESTEXTWEATHER_H

#include <QObject>
#include <QPair>


class ExtWeather;
Expand Down
1 change: 1 addition & 0 deletions sources/test/testgpuloadsource.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define TESTGPULOADSOURCE_H

#include <QObject>
#include <QPair>


class GPULoadSource;
Expand Down
1 change: 1 addition & 0 deletions sources/test/testgputempsource.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define TESTGPUTEMPSOURCE_H

#include <QObject>
#include <QPair>


class GPUTemperatureSource;
Expand Down
1 change: 1 addition & 0 deletions sources/test/testhddtempsource.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define TESTHDDTEMPSOURCE_H

#include <QObject>
#include <QPair>


class HDDTemperatureSource;
Expand Down

0 comments on commit 53918f4

Please sign in to comment.