end porting core part

todo: panels control, windows preview
This commit is contained in:
arcan1s
2015-02-05 12:31:34 +03:00
parent 35a5aa6a6c
commit 685c0390b4
7 changed files with 197 additions and 18 deletions

View File

@ -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;

View File

@ -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;