re-enable the possibility to define the path of elements collections.

Add variables for common and custom elements collections, to avoid multiple access to QSettings and so reduce the loading of collections.  


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5462 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-08-03 16:35:40 +00:00
parent 30bee81432
commit e6c977e7d8
3 changed files with 65 additions and 28 deletions

View File

@@ -86,6 +86,7 @@ class QETApp : public QETSingleApplication
static QString customElementsDir();
static QString commonElementsDirN();
static QString customElementsDirN();
static void resetUserElementsDir();
static QString commonTitleBlockTemplatesDir();
static QString customTitleBlockTemplatesDir();
static bool registerProject(QETProject *);
@@ -185,6 +186,8 @@ class QETApp : public QETSingleApplication
static RecentFiles *m_projects_recent_files;
static RecentFiles *m_elements_recent_files;
static TitleBlockTemplate *default_titleblock_template_;
static QString m_user_common_elements_dir;
static QString m_user_custom_elements_dir;
public slots:
void systray(QSystemTrayIcon::ActivationReason);