Enable compiler warnings
Fix all the unused variable warnings Disable incomplete translations Compile the translation files Add qt_* translations not part of Qt (from VirutalBox) git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@289 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -86,6 +86,7 @@ void AutoTypeDlg::paintEvent(QPaintEvent* event){
|
||||
}
|
||||
|
||||
void AutoTypeDlg::resizeEvent(QResizeEvent* event){
|
||||
Q_UNUSED(event);
|
||||
createBanner(&BannerPixmap,getPixmap("keepassx_large"),tr("Auto-Type"),width());
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "Kdb3Database.h"
|
||||
|
||||
|
||||
CDbSettingsDlg::CDbSettingsDlg(QWidget* parent,IDatabase* db, bool modal, Qt::WFlags fl)
|
||||
CDbSettingsDlg::CDbSettingsDlg(QWidget* parent,IDatabase* db, Qt::WFlags fl)
|
||||
: QDialog(parent,fl)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
@@ -27,7 +27,7 @@ class CDbSettingsDlg : public QDialog, private Ui_DatabaseSettingsDlg
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CDbSettingsDlg(QWidget* parent,IDatabase* db, bool modal = FALSE, Qt::WFlags fl = 0 );
|
||||
CDbSettingsDlg(QWidget* parent,IDatabase* db, Qt::WFlags fl = 0 );
|
||||
~CDbSettingsDlg();
|
||||
virtual void paintEvent(QPaintEvent *);
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "TargetWindowDlg.h"
|
||||
#endif
|
||||
|
||||
CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* parent, bool modal, bool newEntry)
|
||||
CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* parent, bool newEntry)
|
||||
: QDialog(parent)
|
||||
{
|
||||
Q_ASSERT(_db);
|
||||
|
||||
@@ -28,7 +28,7 @@ class CEditEntryDlg : public QDialog, private Ui_EditEntryDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* parent = 0, bool modal = FALSE, bool newEntry = FALSE);
|
||||
CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* parent = 0, bool newEntry = FALSE);
|
||||
~CEditEntryDlg();
|
||||
void InitGroupComboBox();
|
||||
static void saveAttachment(IEntryHandle* pEntry, QWidget* ParentWidget=NULL);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "EditGroupDlg.h"
|
||||
#include "SelectIconDlg.h"
|
||||
|
||||
CEditGroupDialog::CEditGroupDialog(IDatabase* database,IGroupHandle* Handle,QWidget* parent, bool modal, Qt::WFlags fl)
|
||||
CEditGroupDialog::CEditGroupDialog(IDatabase* database,IGroupHandle* Handle,QWidget* parent, Qt::WFlags fl)
|
||||
: QDialog(parent,fl)
|
||||
{
|
||||
setupUi(this);
|
||||
@@ -40,7 +40,7 @@ CEditGroupDialog::CEditGroupDialog(IDatabase* database,IGroupHandle* Handle,QWid
|
||||
}
|
||||
|
||||
|
||||
CEditGroupDialog::CEditGroupDialog(IDatabase* database,CGroup* Group,QWidget* parent, bool modal, Qt::WFlags fl)
|
||||
CEditGroupDialog::CEditGroupDialog(IDatabase* database,CGroup* Group,QWidget* parent, Qt::WFlags fl)
|
||||
: QDialog(parent,fl)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
@@ -27,8 +27,8 @@ class CEditGroupDialog : public QDialog, private Ui_EditGroupDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CEditGroupDialog(IDatabase*,IGroupHandle*,QWidget* parent = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
|
||||
CEditGroupDialog(IDatabase*,CGroup*,QWidget* parent = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
|
||||
CEditGroupDialog(IDatabase*,IGroupHandle*,QWidget* parent = 0, Qt::WFlags fl = 0 );
|
||||
CEditGroupDialog(IDatabase*,CGroup*,QWidget* parent = 0, Qt::WFlags fl = 0 );
|
||||
~CEditGroupDialog();
|
||||
virtual void showEvent(QShowEvent *event);
|
||||
private:
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
PasswordDialog::PasswordDialog(QWidget* parent,DlgMode mode,DlgFlags flags,const QString& filename)
|
||||
: QDialog(parent)
|
||||
{
|
||||
Q_UNUSED(flags);
|
||||
setupUi(this);
|
||||
Mode=mode;
|
||||
Filename=filename;
|
||||
@@ -155,8 +156,8 @@ PasswordDialog::PasswordDialog(QWidget* parent,DlgMode mode,DlgFlags flags,const
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL( clicked() ), this, SLOT( OnOK() ) );
|
||||
connect(Button_Browse, SIGNAL( clicked() ), this, SLOT( OnButtonBrowse() ) );
|
||||
connect(Button_GenKeyFile,SIGNAL(clicked()),this,SLOT(OnGenKeyFile()));
|
||||
connect(Check_Password,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxesChanged(int)));
|
||||
connect(Check_KeyFile,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxesChanged(int)));
|
||||
connect(Check_Password,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxesChanged()));
|
||||
connect(Check_KeyFile,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxesChanged()));
|
||||
connect(Button_Back,SIGNAL(clicked()),this,SLOT(OnButtonBack()));
|
||||
if(!config->showPasswordsPasswordDlg())
|
||||
ChangeEchoModeDatabaseKey();
|
||||
@@ -168,7 +169,7 @@ PasswordDialog::PasswordDialog(QWidget* parent,DlgMode mode,DlgFlags flags,const
|
||||
setMinimumSize(size());
|
||||
createBanner(&BannerPixmap,getPixmap("key"),BannerTitle,width());
|
||||
Button_Bookmarks->setIcon(getIcon("bookmark"));
|
||||
OnCheckBoxesChanged(0);
|
||||
OnCheckBoxesChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -295,7 +296,7 @@ void PasswordDialog::OnOK(){
|
||||
done(Exit_Ok);
|
||||
}
|
||||
|
||||
void PasswordDialog::OnCheckBoxesChanged(int state){
|
||||
void PasswordDialog::OnCheckBoxesChanged(){
|
||||
Edit_Password->setEnabled(Check_Password->isChecked());
|
||||
Combo_KeyFile->setEnabled(Check_KeyFile->isChecked());
|
||||
Button_Browse->setEnabled(Check_KeyFile->isChecked());
|
||||
|
||||
@@ -62,7 +62,7 @@ class PasswordDialog : public QDialog, private Ui_PasswordDlg {
|
||||
void OnButtonBack();
|
||||
void ChangeEchoModeDatabaseKey();
|
||||
void OnBookmarkTriggered(QAction* action);
|
||||
void OnCheckBoxesChanged(int state);
|
||||
void OnCheckBoxesChanged();
|
||||
void done(int r);
|
||||
|
||||
private:
|
||||
|
||||
@@ -473,6 +473,7 @@ PassCharValidator::PassCharValidator(QObject* parent) : QValidator(parent) {
|
||||
}
|
||||
|
||||
QValidator::State PassCharValidator::validate(QString& input, int& pos) const {
|
||||
Q_UNUSED(pos);
|
||||
QSet<QChar> chars;
|
||||
|
||||
for (int i=0; i<input.size(); i++) {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "dialogs/SelectIconDlg.h"
|
||||
|
||||
|
||||
CSelectIconDlg::CSelectIconDlg(IDatabase* database,int CurrentId,QWidget* parent, bool modal, Qt::WFlags fl):QDialog(parent,fl){
|
||||
CSelectIconDlg::CSelectIconDlg(IDatabase* database,int CurrentId,QWidget* parent, Qt::WFlags fl):QDialog(parent,fl){
|
||||
setupUi(this);
|
||||
db=database;
|
||||
Id=CurrentId;
|
||||
|
||||
@@ -27,7 +27,7 @@ class CSelectIconDlg:public QDialog, private Ui_SelectIconDlg{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CSelectIconDlg(IDatabase* db,int ImageID,QWidget* parent = 0, bool modal = false, Qt::WFlags fl = 0);
|
||||
CSelectIconDlg(IDatabase* db,int ImageID,QWidget* parent = 0, Qt::WFlags fl = 0);
|
||||
|
||||
private slots:
|
||||
void OnAddIcon();
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "SimplePasswordDlg.h"
|
||||
|
||||
SimplePasswordDialog::SimplePasswordDialog(QWidget* parent, bool modal, Qt::WFlags fl)
|
||||
SimplePasswordDialog::SimplePasswordDialog(QWidget* parent, Qt::WFlags fl)
|
||||
: QDialog(parent,fl)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
@@ -28,7 +28,7 @@ class SimplePasswordDialog : public QDialog, private Ui_SimplePasswordDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SimplePasswordDialog(QWidget* parent = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
|
||||
SimplePasswordDialog(QWidget* parent = 0, Qt::WFlags fl = 0 );
|
||||
~SimplePasswordDialog();
|
||||
QString password;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user