mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
Preparing to prerelease
* apply clangformat * fix yahoo weather api
This commit is contained in:
parent
7d1e035240
commit
d9409c25f4
@ -69,8 +69,8 @@ void AWUpdateHelper::checkUpdates(const bool showAnyway)
|
||||
bool AWUpdateHelper::checkVersion()
|
||||
{
|
||||
QSettings settings(m_genericConfig, QSettings::IniFormat);
|
||||
QVersionNumber version
|
||||
= QVersionNumber::fromString(settings.value(QString("Version"), QString(VERSION)).toString());
|
||||
QVersionNumber version = QVersionNumber::fromString(
|
||||
settings.value(QString("Version"), QString(VERSION)).toString());
|
||||
// update version
|
||||
settings.setValue(QString("Version"), QString(VERSION));
|
||||
settings.sync();
|
||||
@ -94,7 +94,8 @@ void AWUpdateHelper::showInfo(const QVersionNumber version)
|
||||
{
|
||||
qCDebug(LOG_AW) << "Version" << version;
|
||||
|
||||
QString text = i18n("You are using the actual version %1", version.toString());
|
||||
QString text
|
||||
= i18n("You are using the actual version %1", version.toString());
|
||||
if (!QString(COMMIT_SHA).isEmpty())
|
||||
text += QString(" (%1)").arg(QString(COMMIT_SHA));
|
||||
return genMessageBox(i18n("No new version found"), text, QMessageBox::Ok)
|
||||
@ -127,7 +128,8 @@ void AWUpdateHelper::userReplyOnUpdates(QAbstractButton *button)
|
||||
|
||||
switch (ret) {
|
||||
case QMessageBox::Ok:
|
||||
QDesktopServices::openUrl(QString(RELEASES) + m_foundVersion.toString());
|
||||
QDesktopServices::openUrl(QString(RELEASES)
|
||||
+ m_foundVersion.toString());
|
||||
break;
|
||||
case QMessageBox::Cancel:
|
||||
default:
|
||||
|
@ -23,9 +23,9 @@
|
||||
#include "abstractextitem.h"
|
||||
|
||||
#define YAHOO_WEATHER_URL \
|
||||
"https://query.yahooapis.com/v1/public/yql?format=json&q=select * from " \
|
||||
"weather.forecast where u='c' and woeid in (select woeid from " \
|
||||
"geo.places(1) where text='%1, %2')"
|
||||
"https://query.yahooapis.com/v1/public/yql?format=json&env=store://" \
|
||||
"datatables.org/alltableswithkeys&q=select * from weather.forecast where " \
|
||||
"u='c' and woeid in (select woeid from geo.places(1) where text='%1, %2')"
|
||||
|
||||
|
||||
namespace Ui
|
||||
|
Loading…
Reference in New Issue
Block a user