mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -05:00
Rename KeePassApp to Application and move it to gui directory.
This commit is contained in:
parent
d445bf1ecd
commit
b5249d196d
@ -18,7 +18,6 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
configure_file( config-keepassx.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-keepassx.h )
|
||||
|
||||
set(keepassx_SOURCES
|
||||
core/KeePassApp.cpp
|
||||
core/Config.cpp
|
||||
core/Database.cpp
|
||||
core/DatabaseIcons.cpp
|
||||
@ -53,6 +52,7 @@ set(keepassx_SOURCES
|
||||
format/KeePass2XmlReader.cpp
|
||||
format/KeePass2XmlWriter.cpp
|
||||
gui/AboutDialog.cpp
|
||||
gui/Application.cpp
|
||||
gui/ChangeMasterKeyWidget.cpp
|
||||
gui/DatabaseOpenDialog.cpp
|
||||
gui/DatabaseSettingsWidget.cpp
|
||||
@ -87,7 +87,6 @@ set(keepassx_SOURCES
|
||||
)
|
||||
|
||||
set(keepassx_MOC
|
||||
core/KeePassApp.h
|
||||
core/Database.h
|
||||
core/Entry.h
|
||||
core/EntryAttachments.h
|
||||
@ -95,6 +94,7 @@ set(keepassx_MOC
|
||||
core/Group.h
|
||||
core/Metadata.h
|
||||
gui/AboutDialog.h
|
||||
gui/Application.h
|
||||
gui/ChangeMasterKeyWidget.h
|
||||
gui/DatabaseOpenDialog.h
|
||||
gui/DatabaseSettingsWidget.h
|
||||
|
@ -15,20 +15,20 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "KeePassApp.h"
|
||||
#include "Application.h"
|
||||
|
||||
#include <QtGui/QFileOpenEvent>
|
||||
|
||||
KeePassApp::KeePassApp(int& argc, char** argv)
|
||||
Application::Application(int& argc, char** argv)
|
||||
: QApplication(argc, argv)
|
||||
{
|
||||
}
|
||||
|
||||
KeePassApp::~KeePassApp()
|
||||
Application::~Application()
|
||||
{
|
||||
}
|
||||
|
||||
bool KeePassApp::event(QEvent *event)
|
||||
bool Application::event(QEvent *event)
|
||||
{
|
||||
// Handle Apple QFileOpenEvent from finder (double click on .kdbx file)
|
||||
if (event->type() == QEvent::FileOpen) {
|
@ -15,19 +15,24 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KEEPASSX_APPLICATION_H
|
||||
#define KEEPASSX_APPLICATION_H
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include "gui/MainWindow.h"
|
||||
|
||||
class KeePassApp : public QApplication
|
||||
class Application : public QApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
KeePassApp(int& argc, char** argv);
|
||||
~KeePassApp();
|
||||
Application(int& argc, char** argv);
|
||||
~Application();
|
||||
|
||||
bool event(QEvent *event);
|
||||
|
||||
Q_SIGNALS:
|
||||
void openDatabase(const QString& filename);
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_APPLICATION_H
|
@ -20,14 +20,14 @@
|
||||
#include <QtGui/QTreeView>
|
||||
|
||||
#include "crypto/Crypto.h"
|
||||
#include "gui/Application.h"
|
||||
#include "gui/MainWindow.h"
|
||||
#include "core/KeePassApp.h"
|
||||
#include "keys/CompositeKey.h"
|
||||
#include "keys/PasswordKey.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
KeePassApp app(argc, argv);
|
||||
Application app(argc, argv);
|
||||
// don't set applicationName or organizationName as that changes
|
||||
// QDesktopServices::storageLocation()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user