mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 15:29:44 -05:00
Coding style fixes.
This commit is contained in:
parent
0c7e1f1a6b
commit
b90807c4d3
@ -126,7 +126,7 @@ public:
|
|||||||
void setGroup(Group* group);
|
void setGroup(Group* group);
|
||||||
|
|
||||||
void setUpdateTimeinfo(bool value);
|
void setUpdateTimeinfo(bool value);
|
||||||
bool match(const QString &searchTerm, Qt::CaseSensitivity caseSensitivity);
|
bool match(const QString& searchTerm, Qt::CaseSensitivity caseSensitivity);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "EditWidget.h"
|
#include "EditWidget.h"
|
||||||
#include "ui_EditWidget.h"
|
#include "ui_EditWidget.h"
|
||||||
|
|
||||||
EditWidget::EditWidget(QWidget *parent)
|
EditWidget::EditWidget(QWidget* parent)
|
||||||
: DialogyWidget(parent)
|
: DialogyWidget(parent)
|
||||||
, m_ui(new Ui::EditWidget())
|
, m_ui(new Ui::EditWidget())
|
||||||
{
|
{
|
||||||
@ -50,4 +50,3 @@ QLabel* EditWidget::headlineLabel()
|
|||||||
{
|
{
|
||||||
return m_ui->headerLabel;
|
return m_ui->headerLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
#include <QtCore/QScopedPointer>
|
#include <QtCore/QScopedPointer>
|
||||||
#include <QtGui/QLabel>
|
#include <QtGui/QLabel>
|
||||||
|
|
||||||
#include <gui/DialogyWidget.h>
|
#include "gui/DialogyWidget.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class EditWidget;
|
class EditWidget;
|
||||||
@ -33,7 +32,7 @@ class EditWidget : public DialogyWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit EditWidget(QWidget *parent = 0);
|
explicit EditWidget(QWidget* parent = 0);
|
||||||
~EditWidget();
|
~EditWidget();
|
||||||
|
|
||||||
void add(const QString& labelText, QWidget* widget);
|
void add(const QString& labelText, QWidget* widget);
|
||||||
|
@ -251,7 +251,7 @@ void EntryModel::severConnections()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntryModel::makeConnections(const Group *group)
|
void EntryModel::makeConnections(const Group* group)
|
||||||
{
|
{
|
||||||
connect(group, SIGNAL(entryAboutToAdd(Entry*)), SLOT(entryAboutToAdd(Entry*)));
|
connect(group, SIGNAL(entryAboutToAdd(Entry*)), SLOT(entryAboutToAdd(Entry*)));
|
||||||
connect(group, SIGNAL(entryAdded()), SLOT(entryAdded()));
|
connect(group, SIGNAL(entryAdded()), SLOT(entryAdded()));
|
||||||
|
@ -152,7 +152,7 @@ bool FileKey::create(const QString& fileName, QString* errorMsg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileKey::loadXml(QIODevice *device)
|
bool FileKey::loadXml(QIODevice* device)
|
||||||
{
|
{
|
||||||
QXmlStreamReader xmlReader(device);
|
QXmlStreamReader xmlReader(device);
|
||||||
|
|
||||||
|
@ -29,16 +29,16 @@
|
|||||||
|
|
||||||
namespace QTest {
|
namespace QTest {
|
||||||
template<>
|
template<>
|
||||||
char *toString(const Uuid &uuid)
|
char* toString(const Uuid& uuid)
|
||||||
{
|
{
|
||||||
QByteArray ba = "Uuid(";
|
QByteArray ba = "Uuid(";
|
||||||
ba += uuid.toBase64().toAscii().constData();
|
ba += uuid.toBase64().toAscii().constData();
|
||||||
ba += ")";
|
ba += ")";
|
||||||
return qstrdup(ba.data());
|
return qstrdup(ba.constData());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
char *toString(const Group::TriState &triState)
|
char* toString(const Group::TriState& triState)
|
||||||
{
|
{
|
||||||
QString value;
|
QString value;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include <QtTest/QTest>
|
#include <QtTest/QTest>
|
||||||
|
|
||||||
#define KEEPASSX_QTEST_CORE_MAIN(TestObject) \
|
#define KEEPASSX_QTEST_CORE_MAIN(TestObject) \
|
||||||
int main(int argc, char *argv[]) \
|
int main(int argc, char* argv[]) \
|
||||||
{ \
|
{ \
|
||||||
QCoreApplication app(argc, argv); \
|
QCoreApplication app(argc, argv); \
|
||||||
TestObject tc; \
|
TestObject tc; \
|
||||||
|
Loading…
Reference in New Issue
Block a user