mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 22:59:57 +00:00
end porting core part
todo: panels control, windows preview
This commit is contained in:
@ -492,7 +492,7 @@ void AwesomeWidget::showUpdates(QString version)
|
||||
text += i18n("New version : %1", version) + QString("\n\n");
|
||||
text += i18n("Click \"Ok\" to download");
|
||||
int select = QMessageBox::information(0, i18n("There are updates"), text, QMessageBox::Ok | QMessageBox::Cancel);
|
||||
switch(select) {
|
||||
switch (select) {
|
||||
case QMessageBox::Ok:
|
||||
QDesktopServices::openUrl(QString(RELEASES) + version);
|
||||
break;
|
||||
|
@ -75,7 +75,7 @@ QString GraphicalItem::getImage(const float value)
|
||||
view->resize(_width + 5.0, _height + 5.0);
|
||||
|
||||
// paint
|
||||
switch(_type) {
|
||||
switch (_type) {
|
||||
case Vertical:
|
||||
pen.setWidth(_width);
|
||||
// inactive
|
||||
@ -190,7 +190,7 @@ QString GraphicalItem::getStrType()
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString value;
|
||||
switch(_type) {
|
||||
switch (_type) {
|
||||
case Vertical:
|
||||
value = QString("Vertical");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user