1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[PageScreen] Use QFileDialog::getOpenFileName instead of saveFileName.

This commit is contained in:
nowrep 2013-05-31 18:11:19 +02:00
parent 772427ef09
commit 8621ee0335
3 changed files with 10 additions and 9 deletions

View File

@ -95,7 +95,7 @@ void PageScreen::changeLocation()
{ {
const QString &suggestedPath = QString("%1/%2.%3").arg(QDir::homePath(), QzTools::filterCharsFromFilename(m_pageTitle), const QString &suggestedPath = QString("%1/%2.%3").arg(QDir::homePath(), QzTools::filterCharsFromFilename(m_pageTitle),
m_formats[ui->formats->currentIndex()].toLower()); m_formats[ui->formats->currentIndex()].toLower());
const QString &path = QFileDialog::getSaveFileName(this, tr("Save Page Screen..."), suggestedPath); const QString &path = QFileDialog::getOpenFileName(this, tr("Choose location..."), suggestedPath);
if (!path.isEmpty()) { if (!path.isEmpty()) {
ui->location->setText(path); ui->location->setText(path);

View File

@ -88,7 +88,7 @@
<item> <item>
<widget class="QToolButton" name="changeLocation"> <widget class="QToolButton" name="changeLocation">
<property name="text"> <property name="text">
<string>...</string> <string>Browse...</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -2398,28 +2398,28 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/other/pagescreen.ui" line="75"/> <location filename="../src/lib/other/pagescreen.ui" line="62"/>
<source>Format:</source> <source>Format:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/other/pagescreen.ui" line="85"/> <location filename="../src/lib/other/pagescreen.ui" line="72"/>
<source>Location:</source> <source>Location:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/other/pagescreen.ui" line="104"/> <location filename="../src/lib/other/pagescreen.ui" line="91"/>
<source>...</source> <source>Browse...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/other/pagescreen.cpp" line="56"/> <location filename="../src/lib/other/pagescreen.cpp" line="60"/>
<source>Save as %1</source> <source>Save as %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/lib/other/pagescreen.cpp" line="94"/> <location filename="../src/lib/other/pagescreen.cpp" line="98"/>
<source>Save Page Screen...</source> <source>Choose location...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -4136,6 +4136,7 @@
</message> </message>
<message> <message>
<location filename="../src/lib/app/qupzilla.cpp" line="1933"/> <location filename="../src/lib/app/qupzilla.cpp" line="1933"/>
<location filename="../src/lib/other/pagescreen.cpp" line="156"/>
<source>QupZilla %1 (%2)</source> <source>QupZilla %1 (%2)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>