Provide bash completion
This commit is contained in:
parent
9d37aaf894
commit
53712d52c8
|
@ -92,6 +92,7 @@ include(QtGuiConfig)
|
|||
include(QtConfig)
|
||||
include(WindowsResources)
|
||||
include(AppTarget)
|
||||
include(ShellCompletion)
|
||||
|
||||
# create desktop file using previously defined meta data
|
||||
add_desktop_file()
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <qtutilities/misc/dialogutils.h>
|
||||
#include <qtutilities/misc/desktoputils.h>
|
||||
#include <qtutilities/misc/recentmenumanager.h>
|
||||
#include <qtutilities/aboutdialog/aboutdialog.h>
|
||||
|
||||
#include <c++utilities/io/path.h>
|
||||
#include <c++utilities/io/catchiofailure.h>
|
||||
|
@ -109,7 +110,8 @@ void MainWindow::setSomethingChanged(bool somethingChanged)
|
|||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
m_ui(new Ui::MainWindow),
|
||||
m_clearClipboardTimer(0)
|
||||
m_clearClipboardTimer(0),
|
||||
m_aboutDlg(nullptr)
|
||||
{
|
||||
// setup ui
|
||||
m_ui->setupUi(this);
|
||||
|
@ -305,9 +307,10 @@ void MainWindow::timerEvent(QTimerEvent *event)
|
|||
*/
|
||||
void MainWindow::showAboutDialog()
|
||||
{
|
||||
using namespace Dialogs;
|
||||
AboutDialog* aboutDlg = new AboutDialog(this, tr("A simple password store using AES-256-CBC encryption via OpenSSL."), QImage(":/icons/hicolor/128x128/apps/passwordmanager.png"));
|
||||
aboutDlg->show();
|
||||
if(!m_aboutDlg) {
|
||||
m_aboutDlg = new AboutDialog(this, tr("A simple password store using AES-256-CBC encryption via OpenSSL."), QImage(":/icons/hicolor/128x128/apps/passwordmanager.png"));
|
||||
}
|
||||
m_aboutDlg->show();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
#include <passwordfile/io/passwordfile.h>
|
||||
|
||||
#include <qtutilities/aboutdialog/aboutdialog.h>
|
||||
|
||||
#include <c++utilities/io/binaryreader.h>
|
||||
#include <c++utilities/io/binarywriter.h>
|
||||
|
||||
|
@ -29,6 +27,10 @@ namespace MiscUtils {
|
|||
class RecentMenuManager;
|
||||
}
|
||||
|
||||
namespace Dialogs {
|
||||
class AboutDialog;
|
||||
}
|
||||
|
||||
namespace QtGui {
|
||||
|
||||
class FieldModel;
|
||||
|
@ -121,6 +123,7 @@ private:
|
|||
bool m_dontUpdateSelection;
|
||||
int m_clearClipboardTimer;
|
||||
MiscUtils::RecentMenuManager *m_recentMgr;
|
||||
Dialogs::AboutDialog *m_aboutDlg;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
1
main.cpp
1
main.cpp
|
@ -35,7 +35,6 @@ int main(int argc, char *argv[])
|
|||
// setup argument parser
|
||||
SET_APPLICATION_INFO;
|
||||
ArgumentParser parser;
|
||||
parser.setIgnoreUnknownArguments(true);
|
||||
// file argument
|
||||
Argument fileArg("file", 'f', "specifies the file to be opened (or created when using --modify)");
|
||||
fileArg.setValueNames({"path"});
|
||||
|
|
Loading…
Reference in New Issue