mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-18 22:12:26 -05:00
Fix some more lines that are too long.
This commit is contained in:
parent
2e011d5362
commit
37291d278e
2 changed files with 14 additions and 8 deletions
|
|
@ -20,7 +20,8 @@
|
||||||
#include "core/Config.h"
|
#include "core/Config.h"
|
||||||
|
|
||||||
QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QString dir,
|
QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QString dir,
|
||||||
const QString& filter, QString* selectedFilter, QFileDialog::Options options)
|
const QString& filter, QString* selectedFilter,
|
||||||
|
QFileDialog::Options options)
|
||||||
{
|
{
|
||||||
if (!m_nextFileName.isEmpty()) {
|
if (!m_nextFileName.isEmpty()) {
|
||||||
QString result = m_nextFileName;
|
QString result = m_nextFileName;
|
||||||
|
|
@ -32,7 +33,8 @@ QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QSt
|
||||||
dir = config()->get("LastDir").toString();
|
dir = config()->get("LastDir").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString result = QFileDialog::getOpenFileName(parent, caption, dir, filter, selectedFilter, options);
|
QString result = QFileDialog::getOpenFileName(parent, caption, dir, filter,
|
||||||
|
selectedFilter, options);
|
||||||
|
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
config()->set("LastDir", QFileInfo(result).absolutePath());
|
config()->set("LastDir", QFileInfo(result).absolutePath());
|
||||||
|
|
@ -43,7 +45,8 @@ QString FileDialog::getOpenFileName(QWidget* parent, const QString& caption, QSt
|
||||||
}
|
}
|
||||||
|
|
||||||
QString FileDialog::getSaveFileName(QWidget* parent, const QString& caption, QString dir,
|
QString FileDialog::getSaveFileName(QWidget* parent, const QString& caption, QString dir,
|
||||||
const QString& filter, QString* selectedFilter, QFileDialog::Options options)
|
const QString& filter, QString* selectedFilter,
|
||||||
|
QFileDialog::Options options)
|
||||||
{
|
{
|
||||||
if (!m_nextFileName.isEmpty()) {
|
if (!m_nextFileName.isEmpty()) {
|
||||||
QString result = m_nextFileName;
|
QString result = m_nextFileName;
|
||||||
|
|
@ -55,7 +58,8 @@ QString FileDialog::getSaveFileName(QWidget* parent, const QString& caption, QSt
|
||||||
dir = config()->get("LastDir").toString();
|
dir = config()->get("LastDir").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString result = QFileDialog::getSaveFileName(parent, caption, dir, filter, selectedFilter, options);
|
QString result = QFileDialog::getSaveFileName(parent, caption, dir, filter,
|
||||||
|
selectedFilter, options);
|
||||||
|
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
config()->set("LastDir", QFileInfo(result).absolutePath());
|
config()->set("LastDir", QFileInfo(result).absolutePath());
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,12 @@
|
||||||
class FileDialog
|
class FileDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QString getOpenFileName(QWidget* parent = 0, const QString& caption = QString(), QString dir = QString(),
|
QString getOpenFileName(QWidget* parent = 0, const QString& caption = QString(),
|
||||||
const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0);
|
QString dir = QString(), const QString& filter = QString(),
|
||||||
QString getSaveFileName(QWidget* parent = 0, const QString& caption = QString(), QString dir = QString(),
|
QString* selectedFilter = 0, QFileDialog::Options options = 0);
|
||||||
const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0);
|
QString getSaveFileName(QWidget* parent = 0, const QString& caption = QString(),
|
||||||
|
QString dir = QString(), const QString& filter = QString(),
|
||||||
|
QString* selectedFilter = 0, QFileDialog::Options options = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the result of the next get* method call.
|
* Sets the result of the next get* method call.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue