Refactoring.

This commit is contained in:
Martin Rotter 2014-11-13 19:06:00 +01:00
parent c5535fad4d
commit f9ecd6bfa2
5 changed files with 4 additions and 5 deletions

View file

@ -60,6 +60,7 @@
#define ELLIPSIS_LENGTH 3 #define ELLIPSIS_LENGTH 3
#define MIN_CATEGORY_NAME_LENGTH 3 #define MIN_CATEGORY_NAME_LENGTH 3
#define INTERNAL_URL_NEWSPAPER "@APP_LOW_NAME@:newspaper" #define INTERNAL_URL_NEWSPAPER "@APP_LOW_NAME@:newspaper"
#define INTERNAL_URL_EMPTY "@APP_LOW_NAME@:empty"
#define DEFAULT_AUTO_UPDATE_INTERVAL 15 #define DEFAULT_AUTO_UPDATE_INTERVAL 15
#define AUTO_UPDATE_INTERVAL 60000 #define AUTO_UPDATE_INTERVAL 60000
#define STARTUP_UPDATE_DELAY 1500 #define STARTUP_UPDATE_DELAY 1500
@ -111,7 +112,6 @@
#endif #endif
#define APP_REVISION "@APP_REVISION@" #define APP_REVISION "@APP_REVISION@"
#define APP_QUIT_INSTANCE "app_quit" #define APP_QUIT_INSTANCE "app_quit"
#define APP_IS_RUNNING "app_is_running" #define APP_IS_RUNNING "app_is_running"
#define APP_SKIN_DEFAULT "base/vergilius.xml" #define APP_SKIN_DEFAULT "base/vergilius.xml"

View file

@ -308,7 +308,6 @@ void FeedMessageViewer::initialize() {
// Downloader setup. // Downloader setup.
qRegisterMetaType<QList<FeedsModelFeed*> >("QList<FeedsModelFeed*>"); qRegisterMetaType<QList<FeedsModelFeed*> >("QList<FeedsModelFeed*>");
m_feedDownloader->moveToThread(m_feedDownloaderThread); m_feedDownloader->moveToThread(m_feedDownloaderThread);
refreshVisualProperties(); refreshVisualProperties();
} }

View file

@ -156,7 +156,7 @@ bool SystemFactory::setAutoStartStatus(const AutoStartStatus &new_status) {
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
bool SystemFactory::removeTrolltechJunkRegistryKeys() { bool SystemFactory::removeTrolltechJunkRegistryKeys() {
if (qApp->settings()->value(GROUP(General), "remove_trolltech_junk", false).toBool()) { if (qApp->settings()->value(GROUP(General), SETTING(General::RemoveTrolltechJunk)).toBool()) {
QSettings registry_key("HKEY_CURRENT_USER\\Software\\TrollTech", QSettings::NativeFormat); QSettings registry_key("HKEY_CURRENT_USER\\Software\\TrollTech", QSettings::NativeFormat);
registry_key.remove(""); registry_key.remove("");

View file

@ -203,7 +203,7 @@ void WebBrowser::updateUrl(const QUrl &url) {
QString url_string = url.toString(); QString url_string = url.toString();
m_txtLocation->setText(url_string); m_txtLocation->setText(url_string);
setNavigationBarVisible(url_string != "rssguard:empty" && url_string != INTERNAL_URL_NEWSPAPER); setNavigationBarVisible(url_string != INTERNAL_URL_EMPTY && url_string != INTERNAL_URL_NEWSPAPER);
} }
void WebBrowser::navigateToUrl(const QUrl &url) { void WebBrowser::navigateToUrl(const QUrl &url) {

View file

@ -97,7 +97,7 @@ class WebBrowser : public TabContent {
// Clears contents. // Clears contents.
inline void clear() { inline void clear() {
if (m_webView->url() != QUrl()) { if (m_webView->url() != QUrl()) {
m_webView->setHtml("<html><body></body></html>", QUrl("rssguard:empty")); m_webView->setHtml("<html><body></body></html>", QUrl(INTERNAL_URL_EMPTY));
} }
} }