|
QtPass 2.0.0
Developer documentation
|
Program entry point: command-line parsing, the single-instance hand- over, translations and the main window. More...
#include "mainwindow.h"#include "qtpasssettings.h"#include "sshauthsock.h"#include "util.h"#include <QApplication>#include <QDir>#include <QTranslator>#include <QtWidgets>Go to the source code of this file.
Functions | |
| static auto | joinRemainingArgs (const QStringList &args, int start) -> QString |
Joins all arguments from index start onward into a space-separated string. | |
| static auto | appendWithSpaceIfSuffixNotEmpty (QString &target, const QString &suffix) -> void |
| Appends a suffix to a target string, inserting a separating space if the target is not empty. | |
| auto | main (int argc, char *argv[]) -> int |
| Application entry point: parses arguments and launches the main window. | |
Program entry point: command-line parsing, the single-instance hand- over, translations and the main window.
Definition in file main.cpp.
|
static |
Appends a suffix to a target string, inserting a separating space if the target is not empty.
If suffix is empty, target is left unchanged.
| target | String to append to; modified in place. |
| suffix | Suffix to append. |
Definition at line 43 of file main.cpp.
|
static |
Joins all arguments from index start onward into a space-separated string.
| args | Full argument list. |
| start | Index of the first argument to include. |
Definition at line 29 of file main.cpp.
| auto main | ( | int | argc, |
| char * | argv[] ) -> int |