Setting the application name with "-dev" suffix in debug builds and setting the organization name (for storing configs and other files in proper directory).
This commit is contained in:
@ -19,6 +19,15 @@ using namespace std;
|
||||
GenericCore::GenericCore() {
|
||||
qDebug() << "Creating core...";
|
||||
|
||||
QCoreApplication::setOrganizationName("Working-Copy Collective");
|
||||
QCoreApplication::setOrganizationDomain("working-copy.org");
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
QCoreApplication::setApplicationName(QString(APPLICATION_NAME) + "-dev");
|
||||
#else
|
||||
QCoreApplication::setApplicationName(QString(APPLICATION_NAME));
|
||||
#endif
|
||||
|
||||
// TODO let the model own its undo stack (& use TableModel::getUndoStack() if necessary)
|
||||
m_modelUndoStack = new QUndoStack(this);
|
||||
|
||||
|
||||
@ -43,6 +43,7 @@ class TableModel : public QAbstractTableModel {
|
||||
|
||||
private:
|
||||
/// *** members ***
|
||||
// TODO shared_ptr -> unique_ptr
|
||||
QList<shared_ptr<ModelItem>> m_items;
|
||||
QUndoStack* m_undoStack;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user