mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-03 03:56:08 -04:00
Coding style fixes.
This commit is contained in:
parent
668103a00f
commit
9c378216f6
3 changed files with 5 additions and 5 deletions
|
@ -504,8 +504,6 @@ QString AutoType::autoTypeSequence(const Entry* entry, const QString& windowTitl
|
||||||
|
|
||||||
bool AutoType::windowMatches(const QString& windowTitle, const QString& windowPattern)
|
bool AutoType::windowMatches(const QString& windowTitle, const QString& windowPattern)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (windowPattern.startsWith("//") && windowPattern.endsWith("//") && windowPattern.size() >= 4) {
|
if (windowPattern.startsWith("//") && windowPattern.endsWith("//") && windowPattern.size() >= 4) {
|
||||||
QRegExp regExp(windowPattern.mid(2, windowPattern.size() - 4), Qt::CaseInsensitive, QRegExp::RegExp2);
|
QRegExp regExp(windowPattern.mid(2, windowPattern.size() - 4), Qt::CaseInsensitive, QRegExp::RegExp2);
|
||||||
return regExp.exactMatch(windowTitle);
|
return regExp.exactMatch(windowTitle);
|
||||||
|
|
|
@ -41,6 +41,7 @@ DatabaseManagerStruct::DatabaseManagerStruct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const int DatabaseTabWidget::LastDatabasesCount = 5;
|
const int DatabaseTabWidget::LastDatabasesCount = 5;
|
||||||
|
|
||||||
DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
|
DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
#include "gui/entry/EntryView.h"
|
#include "gui/entry/EntryView.h"
|
||||||
#include "gui/group/GroupView.h"
|
#include "gui/group/GroupView.h"
|
||||||
|
|
||||||
|
const QString MainWindow::BaseWindowTitle = "KeePassX";
|
||||||
|
|
||||||
MainWindow::MainWindow()
|
MainWindow::MainWindow()
|
||||||
: m_ui(new Ui::MainWindow())
|
: m_ui(new Ui::MainWindow())
|
||||||
{
|
{
|
||||||
|
@ -168,7 +170,8 @@ MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::updateLastDatabasesMenu() {
|
void MainWindow::updateLastDatabasesMenu()
|
||||||
|
{
|
||||||
m_ui->menuRecentDatabases->clear();
|
m_ui->menuRecentDatabases->clear();
|
||||||
|
|
||||||
QStringList lastDatabases = config()->get("LastDatabases", QVariant()).toStringList();
|
QStringList lastDatabases = config()->get("LastDatabases", QVariant()).toStringList();
|
||||||
|
@ -195,8 +198,6 @@ void MainWindow::openDatabase(const QString& fileName, const QString& pw, const
|
||||||
m_ui->tabWidget->openDatabase(fileName, pw, keyFile);
|
m_ui->tabWidget->openDatabase(fileName, pw, keyFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString MainWindow::BaseWindowTitle = "KeePassX";
|
|
||||||
|
|
||||||
void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
||||||
{
|
{
|
||||||
bool inDatabaseTabWidget = (m_ui->stackedWidget->currentIndex() == 0);
|
bool inDatabaseTabWidget = (m_ui->stackedWidget->currentIndex() == 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue