Skip to content

Commit

Permalink
Merge pull request #11 from todbot/master
Browse files Browse the repository at this point in the history
Small fixes for QT5
  • Loading branch information
pypt committed Aug 17, 2013
2 parents 9682465 + 96f2df9 commit b965e26
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
44 changes: 23 additions & 21 deletions Fervor.pri
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QT += core gui webkit network
QT += core gui webkit webkitwidgets network

isEmpty(FV_APP_NAME) {
warning("Fervor: falling back to application name '$$TARGET'")
Expand Down Expand Up @@ -27,24 +27,26 @@ isEmpty(FV_APP_VERSION) {
DEPENDPATH += "$$PWD"
INCLUDEPATH += "$$PWD"

SOURCES += fvupdatewindow.cpp \
fvupdater.cpp \
fvversioncomparator.cpp \
fvplatform.cpp \
fvignoredversions.cpp \
fvavailableupdate.cpp \
fvupdateconfirmdialog.cpp

HEADERS += fvupdatewindow.h \
fvupdater.h \
fvversioncomparator.h \
fvplatform.h \
fvignoredversions.h \
fvavailableupdate.h \
fvupdateconfirmdialog.h

FORMS += fvupdatewindow.ui \
fvupdateconfirmdialog.ui

TRANSLATIONS += fervor_lt.ts
SOURCES += \
$$PWD/fvupdatewindow.cpp \
$$PWD/fvupdater.cpp \
$$PWD/fvversioncomparator.cpp \
$$PWD/fvplatform.cpp \
$$PWD/fvignoredversions.cpp \
$$PWD/fvavailableupdate.cpp \
$$PWD/fvupdateconfirmdialog.cpp

HEADERS += \
$$PWD/fvupdatewindow.h \
$$PWD/fvupdater.h \
$$PWD/fvversioncomparator.h \
$$PWD/fvplatform.h \
$$PWD/fvignoredversions.h \
$$PWD/fvavailableupdate.h \
$$PWD/fvupdateconfirmdialog.h

FORMS += $$PWD/fvupdatewindow.ui \
$$PWD/fvupdateconfirmdialog.ui

TRANSLATIONS += $$PWD/fervor_lt.ts
CODECFORTR = UTF-8
2 changes: 1 addition & 1 deletion fvupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void FvUpdater::installTranslator()
QTranslator translator;
QString locale = QLocale::system().name();
translator.load(QString("fervor_") + locale);
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
//QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
qApp->installTranslator(&translator);
}

Expand Down
1 change: 1 addition & 0 deletions fvversioncomparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <string>
#include <algorithm>
#include <cctype>
#include <stdlib.h> // for atoi()

//
// Clone of Sparkle's SUStandardVersionComparator.m, so here's original author's
Expand Down

0 comments on commit b965e26

Please sign in to comment.