1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[Preferences][Win] Changed labels on "Set as default" button.

Also renamed QtSingleApplication::removeLockedFile to removeLockFile
This commit is contained in:
nowrep 2013-04-05 11:39:19 +02:00
parent 43d514a647
commit 35ceee25ee
5 changed files with 55 additions and 45 deletions

View File

@ -277,7 +277,7 @@ QWidget* QtSingleApplication::activationWindow() const
return actWin; return actWin;
} }
void QtSingleApplication::removeLockedFile() void QtSingleApplication::removeLockFile()
{ {
peer->removeLockedFile(); peer->removeLockedFile();
} }

View File

@ -84,7 +84,7 @@ public:
void initialize(bool dummy = true) void initialize(bool dummy = true)
{ isRunning(); Q_UNUSED(dummy) } { isRunning(); Q_UNUSED(dummy) }
void removeLockedFile(); void removeLockFile();
public Q_SLOTS: public Q_SLOTS:
bool sendMessage(const QString &message, int timeout = 5000); bool sendMessage(const QString &message, int timeout = 5000);

View File

@ -747,7 +747,7 @@ void MainApplication::quitApplication()
// //
// * this can occur on Mac OS (see #157) // * this can occur on Mac OS (see #157)
removeLockedFile(); removeLockFile();
quit(); quit();
} }

View File

@ -109,11 +109,11 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
ui->checkDefaultBrowser->setChecked(settings.value("Web-Browser-Settings/CheckDefaultBrowser", DEFAULT_CHECK_DEFAULTBROWSER).toBool()); ui->checkDefaultBrowser->setChecked(settings.value("Web-Browser-Settings/CheckDefaultBrowser", DEFAULT_CHECK_DEFAULTBROWSER).toBool());
if (mApp->associationManager()->isDefaultForAllCapabilities()) { if (mApp->associationManager()->isDefaultForAllCapabilities()) {
ui->checkNowDefaultBrowser->setText(tr("QupZilla is default")); ui->checkNowDefaultBrowser->setText(tr("Default"));
ui->checkNowDefaultBrowser->setEnabled(false); ui->checkNowDefaultBrowser->setEnabled(false);
} }
else { else {
ui->checkNowDefaultBrowser->setText(tr("Make QupZilla default")); ui->checkNowDefaultBrowser->setText(tr("Set as default"));
ui->checkNowDefaultBrowser->setEnabled(true); ui->checkNowDefaultBrowser->setEnabled(true);
connect(ui->checkNowDefaultBrowser, SIGNAL(clicked()), this, SLOT(makeQupZillaDefault())); connect(ui->checkNowDefaultBrowser, SIGNAL(clicked()), this, SLOT(makeQupZillaDefault()));
} }
@ -530,7 +530,7 @@ void Preferences::makeQupZillaDefault()
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
disconnect(ui->checkNowDefaultBrowser, SIGNAL(clicked()), this, SLOT(makeQupZillaDefault())); disconnect(ui->checkNowDefaultBrowser, SIGNAL(clicked()), this, SLOT(makeQupZillaDefault()));
mApp->associationManager()->registerAllAssociation(); mApp->associationManager()->registerAllAssociation();
ui->checkNowDefaultBrowser->setText(tr("QupZilla is default")); ui->checkNowDefaultBrowser->setText(tr("Default"));
ui->checkNowDefaultBrowser->setEnabled(false); ui->checkNowDefaultBrowser->setEnabled(false);
#endif #endif
} }

View File

@ -2202,22 +2202,22 @@
<context> <context>
<name>MainApplication</name> <name>MainApplication</name>
<message> <message>
<location filename="../src/lib/app/mainapplication.cpp" line="958"/> <location filename="../src/lib/app/mainapplication.cpp" line="959"/>
<source>QupZilla is not currently your default browser. Would you like to make it your default browser?</source> <source>QupZilla is not currently your default browser. Would you like to make it your default browser?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/app/mainapplication.cpp" line="959"/> <location filename="../src/lib/app/mainapplication.cpp" line="960"/>
<source>Always perform this check when starting QupZilla.</source> <source>Always perform this check when starting QupZilla.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/app/mainapplication.cpp" line="961"/> <location filename="../src/lib/app/mainapplication.cpp" line="962"/>
<source>Default Browser</source> <source>Default Browser</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/app/mainapplication.cpp" line="981"/> <location filename="../src/lib/app/mainapplication.cpp" line="982"/>
<source>QupZilla is a new, fast and secure open-source WWW browser. QupZilla is licensed under GPL version 3 or (at your option) any later version. It is based on WebKit core and Qt Framework.</source> <source>QupZilla is a new, fast and secure open-source WWW browser. QupZilla is licensed under GPL version 3 or (at your option) any later version. It is based on WebKit core and Qt Framework.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -2578,67 +2578,67 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="37"/> <location filename="../src/lib/preferences/preferences.ui" line="2653"/>
<source>QupZilla</source> <source>QupZilla</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="91"/> <location filename="../src/lib/preferences/preferences.ui" line="60"/>
<source>General</source> <source>General</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="96"/> <location filename="../src/lib/preferences/preferences.ui" line="65"/>
<source>Appearance</source> <source>Appearance</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="101"/> <location filename="../src/lib/preferences/preferences.ui" line="70"/>
<source>Tabs</source> <source>Tabs</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="106"/> <location filename="../src/lib/preferences/preferences.ui" line="75"/>
<source>Browsing</source> <source>Browsing</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="111"/> <location filename="../src/lib/preferences/preferences.ui" line="80"/>
<source>Fonts</source> <source>Fonts</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="116"/> <location filename="../src/lib/preferences/preferences.ui" line="85"/>
<source>Keyboard Shortcuts</source> <source>Keyboard Shortcuts</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="121"/> <location filename="../src/lib/preferences/preferences.ui" line="90"/>
<source>Downloads</source> <source>Downloads</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="126"/> <location filename="../src/lib/preferences/preferences.ui" line="95"/>
<source>Password Manager</source> <source>Password Manager</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="131"/> <location filename="../src/lib/preferences/preferences.ui" line="100"/>
<source>Privacy</source> <source>Privacy</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="136"/> <location filename="../src/lib/preferences/preferences.ui" line="105"/>
<source>Notifications</source> <source>Notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="141"/> <location filename="../src/lib/preferences/preferences.ui" line="110"/>
<source>Extensions</source> <source>Extensions</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="146"/> <location filename="../src/lib/preferences/preferences.ui" line="115"/>
<source>Other</source> <source>Other</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -2650,7 +2650,7 @@
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.ui" line="204"/> <location filename="../src/lib/preferences/preferences.ui" line="204"/>
<location filename="../src/lib/preferences/preferences.cpp" line="796"/> <location filename="../src/lib/preferences/preferences.cpp" line="801"/>
<source>Note: You cannot delete active profile.</source> <source>Note: You cannot delete active profile.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -3494,89 +3494,89 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="111"/> <location filename="../src/lib/preferences/preferences.cpp" line="112"/>
<location filename="../src/lib/preferences/preferences.cpp" line="528"/> <location filename="../src/lib/preferences/preferences.cpp" line="533"/>
<source>QupZilla is default</source> <source>Default</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="115"/> <location filename="../src/lib/preferences/preferences.cpp" line="116"/>
<source>Make QupZilla default</source> <source>Set as default</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="512"/> <location filename="../src/lib/preferences/preferences.cpp" line="517"/>
<source>OSD Notification</source> <source>OSD Notification</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="513"/> <location filename="../src/lib/preferences/preferences.cpp" line="518"/>
<source>Drag it on the screen to place it where you want.</source> <source>Drag it on the screen to place it where you want.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="554"/> <location filename="../src/lib/preferences/preferences.cpp" line="559"/>
<source>Choose download location...</source> <source>Choose download location...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="568"/> <location filename="../src/lib/preferences/preferences.cpp" line="573"/>
<source>Choose stylesheet location...</source> <source>Choose stylesheet location...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="579"/> <location filename="../src/lib/preferences/preferences.cpp" line="584"/>
<source>Deleted</source> <source>Deleted</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="585"/> <location filename="../src/lib/preferences/preferences.cpp" line="590"/>
<source>Choose executable location...</source> <source>Choose executable location...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="709"/> <location filename="../src/lib/preferences/preferences.cpp" line="714"/>
<source>Choose cache path...</source> <source>Choose cache path...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="750"/> <location filename="../src/lib/preferences/preferences.cpp" line="755"/>
<source>New Profile</source> <source>New Profile</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="750"/> <location filename="../src/lib/preferences/preferences.cpp" line="755"/>
<source>Enter the new profile&apos;s name:</source> <source>Enter the new profile&apos;s name:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="757"/> <location filename="../src/lib/preferences/preferences.cpp" line="762"/>
<location filename="../src/lib/preferences/preferences.cpp" line="761"/> <location filename="../src/lib/preferences/preferences.cpp" line="766"/>
<source>Error!</source> <source>Error!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="757"/> <location filename="../src/lib/preferences/preferences.cpp" line="762"/>
<source>This profile already exists!</source> <source>This profile already exists!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="761"/> <location filename="../src/lib/preferences/preferences.cpp" line="766"/>
<source>Cannot create profile directory!</source> <source>Cannot create profile directory!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="781"/> <location filename="../src/lib/preferences/preferences.cpp" line="786"/>
<source>Confirmation</source> <source>Confirmation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="782"/> <location filename="../src/lib/preferences/preferences.cpp" line="787"/>
<source>Are you sure to permanently delete &quot;%1&quot; profile? This action cannot be undone!</source> <source>Are you sure to permanently delete &quot;%1&quot; profile? This action cannot be undone!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/preferences/preferences.cpp" line="1064"/> <location filename="../src/lib/preferences/preferences.cpp" line="1069"/>
<source>Select Color</source> <source>Select Color</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -5911,6 +5911,16 @@ After adding or removing certificate paths, it is neccessary to restart QupZilla
<source>Choose file...</source> <source>Choose file...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../src/lib/webview/webpage.cpp" line="997"/>
<source>Cannot read data from &lt;b&gt;%1&lt;/b&gt;. Upload was cancelled!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/lib/webview/webpage.cpp" line="998"/>
<source>Cannot read file!</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>WebSearchBar</name> <name>WebSearchBar</name>