mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
Final updates for 0.9.7 release
This commit is contained in:
parent
67155b16d1
commit
23e61ceccf
Binary file not shown.
|
@ -178,10 +178,6 @@ void MainApplication::loadSettings()
|
||||||
|
|
||||||
QupZilla* MainApplication::getWindow()
|
QupZilla* MainApplication::getWindow()
|
||||||
{
|
{
|
||||||
QupZilla *active = qobject_cast<QupZilla*>(QApplication::activeWindow());
|
|
||||||
if (active)
|
|
||||||
return active;
|
|
||||||
|
|
||||||
for(int i=0; i<m_mainWindows.count(); i++) {
|
for(int i=0; i<m_mainWindows.count(); i++) {
|
||||||
if (!m_mainWindows.at(i))
|
if (!m_mainWindows.at(i))
|
||||||
continue;
|
continue;
|
||||||
|
@ -233,9 +229,9 @@ void MainApplication::addNewTab(QUrl url)
|
||||||
void MainApplication::makeNewWindow(bool tryRestore, const QUrl &startUrl)
|
void MainApplication::makeNewWindow(bool tryRestore, const QUrl &startUrl)
|
||||||
{
|
{
|
||||||
QupZilla* newWindow = new QupZilla(tryRestore, startUrl);
|
QupZilla* newWindow = new QupZilla(tryRestore, startUrl);
|
||||||
newWindow->show();
|
|
||||||
connect(newWindow, SIGNAL(message(MainApplication::MessageType,bool)), this, SLOT(sendMessages(MainApplication::MessageType,bool)));
|
connect(newWindow, SIGNAL(message(MainApplication::MessageType,bool)), this, SLOT(sendMessages(MainApplication::MessageType,bool)));
|
||||||
m_mainWindows.append(newWindow);
|
m_mainWindows.append(newWindow);
|
||||||
|
newWindow->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainApplication::connectDatabase()
|
void MainApplication::connectDatabase()
|
||||||
|
@ -282,7 +278,6 @@ void MainApplication::quitApplication()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete m_updater;
|
|
||||||
m_isClosing = true;
|
m_isClosing = true;
|
||||||
|
|
||||||
if (m_mainWindows.count() > 0)
|
if (m_mainWindows.count() > 0)
|
||||||
|
|
|
@ -67,8 +67,8 @@ public:
|
||||||
inline QString getActiveLanguage() { return m_activeLanguage; }
|
inline QString getActiveLanguage() { return m_activeLanguage; }
|
||||||
inline bool isClosing() { return m_isClosing; }
|
inline bool isClosing() { return m_isClosing; }
|
||||||
inline bool isExited() { return m_isExited; }
|
inline bool isExited() { return m_isExited; }
|
||||||
inline int windowCount() { return m_mainWindows.count(); }
|
|
||||||
bool checkProfileDir();
|
bool checkProfileDir();
|
||||||
|
inline int windowCount() { return m_mainWindows.count(); }
|
||||||
|
|
||||||
QupZilla* getWindow();
|
QupZilla* getWindow();
|
||||||
BookmarksManager* bookmarksManager();
|
BookmarksManager* bookmarksManager();
|
||||||
|
|
|
@ -655,7 +655,7 @@ void QupZilla::closeEvent(QCloseEvent* event)
|
||||||
if (mApp->isClosing())
|
if (mApp->isClosing())
|
||||||
return;
|
return;
|
||||||
if (mApp->windowCount() == 1) {
|
if (mApp->windowCount() == 1) {
|
||||||
quitApp();
|
quitApp() ? event->accept() : event->ignore();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -664,20 +664,22 @@ void QupZilla::closeEvent(QCloseEvent* event)
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QupZilla::quitApp()
|
bool QupZilla::quitApp()
|
||||||
{
|
{
|
||||||
QSettings settings(m_activeProfil+"settings.ini", QSettings::IniFormat);
|
QSettings settings(m_activeProfil+"settings.ini", QSettings::IniFormat);
|
||||||
settings.beginGroup("Web-URL-Settings");
|
settings.beginGroup("Web-URL-Settings");
|
||||||
|
|
||||||
if (settings.value("afterLaunch",0).toInt()!=2 && m_tabWidget->count()>1) {
|
if (settings.value("afterLaunch",0).toInt()!=2 && m_tabWidget->count()>1) {
|
||||||
QMessageBox::StandardButton button = QMessageBox::warning(this, tr("There are still open tabs"),
|
QMessageBox::StandardButton button = QMessageBox::warning(this, tr("There are still open tabs"),
|
||||||
tr("There are still %1 open tabs and your session won't be stored. Are you sure to quit?").arg(m_tabWidget->count()), QMessageBox::Yes | QMessageBox::No);
|
tr("There are still %1 open tabs and your session won't be stored. Are you sure to quit?").arg(m_tabWidget->count()), QMessageBox::Yes | QMessageBox::No);
|
||||||
if (button != QMessageBox::Yes)
|
if (button != QMessageBox::Yes)
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
|
mApp->aboutToCloseWindow(this);
|
||||||
mApp->quitApplication();
|
mApp->quitApplication();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QupZilla::~QupZilla()
|
QupZilla::~QupZilla()
|
||||||
|
|
|
@ -182,7 +182,7 @@ private slots:
|
||||||
void fullScreen(bool make);
|
void fullScreen(bool make);
|
||||||
void startPrivate(bool state);
|
void startPrivate(bool state);
|
||||||
|
|
||||||
void quitApp();
|
bool quitApp();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setupUi();
|
void setupUi();
|
||||||
|
|
|
@ -241,7 +241,7 @@ bool DownloadManager::canClose()
|
||||||
|
|
||||||
void DownloadManager::closeEvent(QCloseEvent *e)
|
void DownloadManager::closeEvent(QCloseEvent *e)
|
||||||
{
|
{
|
||||||
if (!mApp->getWindow()) { // No main windows -> we are going to quit
|
if (mApp->windowCount() == 0) { // No main windows -> we are going to quit
|
||||||
if (!canClose()){
|
if (!canClose()){
|
||||||
QMessageBox::StandardButton button = QMessageBox::warning(this, tr("Warning"),
|
QMessageBox::StandardButton button = QMessageBox::warning(this, tr("Warning"),
|
||||||
tr("Are you sure to quit? All uncompleted downloads will be cancelled!"), QMessageBox::Yes | QMessageBox::No);
|
tr("Are you sure to quit? All uncompleted downloads will be cancelled!"), QMessageBox::Yes | QMessageBox::No);
|
||||||
|
|
|
@ -170,7 +170,6 @@ Preferences::Preferences(QupZilla* mainClass, QWidget *parent) :
|
||||||
else
|
else
|
||||||
ui->useDefined->setChecked(true);
|
ui->useDefined->setChecked(true);
|
||||||
connect(ui->useDefined, SIGNAL(toggled(bool)), this, SLOT(downLocChanged(bool)));
|
connect(ui->useDefined, SIGNAL(toggled(bool)), this, SLOT(downLocChanged(bool)));
|
||||||
ui->closeDownDialogOnFinish->setChecked( settings.value("autoCloseOnFinish",false).toBool() );
|
|
||||||
connect(ui->downButt, SIGNAL(clicked()), this, SLOT(chooseDownPath()));
|
connect(ui->downButt, SIGNAL(clicked()), this, SLOT(chooseDownPath()));
|
||||||
downLocChanged(ui->useDefined->isChecked());
|
downLocChanged(ui->useDefined->isChecked());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
@ -431,7 +430,6 @@ void Preferences::saveSettings()
|
||||||
text+="/";
|
text+="/";
|
||||||
settings.setValue("defaultDownloadPath",text);
|
settings.setValue("defaultDownloadPath",text);
|
||||||
}
|
}
|
||||||
settings.setValue("autoCloseOnFinish",ui->closeDownDialogOnFinish->isChecked());
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
//BROWSING
|
//BROWSING
|
||||||
|
|
|
@ -1039,27 +1039,20 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" colspan="2">
|
<item row="3" column="1" colspan="2">
|
||||||
<widget class="QCheckBox" name="closeDownDialogOnFinish">
|
|
||||||
<property name="text">
|
|
||||||
<string>Automatically close download dialog after finish</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1" colspan="2">
|
|
||||||
<widget class="QRadioButton" name="askEverytime">
|
<widget class="QRadioButton" name="askEverytime">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Ask everytime for download location</string>
|
<string>Ask everytime for download location</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1" colspan="2">
|
<item row="4" column="1" colspan="2">
|
||||||
<widget class="QRadioButton" name="useDefined">
|
<widget class="QRadioButton" name="useDefined">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Use defined location: </string>
|
<string>Use defined location: </string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1" colspan="3">
|
<item row="5" column="1" colspan="3">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="downLoc"/>
|
<widget class="QLineEdit" name="downLoc"/>
|
||||||
|
@ -1073,7 +1066,7 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="2">
|
<item row="6" column="2">
|
||||||
<spacer name="verticalSpacer_10">
|
<spacer name="verticalSpacer_10">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
|
@ -1086,36 +1079,7 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="4" column="3">
|
||||||
<spacer name="horizontalSpacer_13">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="3">
|
|
||||||
<spacer name="horizontalSpacer_17">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="3">
|
|
||||||
<spacer name="horizontalSpacer_18">
|
<spacer name="horizontalSpacer_18">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
@ -1128,7 +1092,7 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item row="5" column="0">
|
||||||
<spacer name="horizontalSpacer_19">
|
<spacer name="horizontalSpacer_19">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|
|
@ -1495,7 +1495,7 @@ neexistuje!</translation>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/preferences.ui" line="1424"/>
|
<location filename="../src/preferences/preferences.ui" line="1424"/>
|
||||||
<source>SSL Manager</source>
|
<source>SSL Manager</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Správca SSL</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/preferences.ui" line="1463"/>
|
<location filename="../src/preferences/preferences.ui" line="1463"/>
|
||||||
|
@ -2052,12 +2052,12 @@ Prosím pridajte si nejaký kliknutím na RSS ikonku v navigačnom riadku.</tran
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/sslmanager.cpp" line="56"/>
|
<location filename="../src/preferences/sslmanager.cpp" line="56"/>
|
||||||
<source><b>Organization: </b></source>
|
<source><b>Organization: </b></source>
|
||||||
<translation type="unfinished"><b>Organizácia: </b></translation>
|
<translation><b>Organizácia: </b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/sslmanager.cpp" line="57"/>
|
<location filename="../src/preferences/sslmanager.cpp" line="57"/>
|
||||||
<source><b>Domain Name: </b></source>
|
<source><b>Domain Name: </b></source>
|
||||||
<translation type="unfinished"><b>Doména: </b></translation>
|
<translation><b>Doména: </b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/sslmanager.cpp" line="58"/>
|
<location filename="../src/preferences/sslmanager.cpp" line="58"/>
|
||||||
|
@ -2077,7 +2077,7 @@ Prosím pridajte si nejaký kliknutím na RSS ikonku v navigačnom riadku.</tran
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/sslmanager.cpp" line="61"/>
|
<location filename="../src/preferences/sslmanager.cpp" line="61"/>
|
||||||
<source><b>Expiration Date: </b></source>
|
<source><b>Expiration Date: </b></source>
|
||||||
<translation type="unfinished"><b>Platnosť do: </b></translation>
|
<translation><b>Platnosť do: </b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/sslmanager.cpp" line="67"/>
|
<location filename="../src/preferences/sslmanager.cpp" line="67"/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user