mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-26 21:40:52 +01:00
Minor improvement for function QETApp::customElementsDir() and QETApp::commonElementsDir()
the path is set the first time the function is called. Each other call will immediately return the previously setted path instead of check again what path to return.
This commit is contained in:
@@ -83,7 +83,7 @@ class QETApp : public QObject
|
||||
static QString customElementsDir();
|
||||
static QString commonElementsDirN();
|
||||
static QString customElementsDirN();
|
||||
static void resetUserElementsDir();
|
||||
static void resetCollectionsPath();
|
||||
static QString commonTitleBlockTemplatesDir();
|
||||
static QString customTitleBlockTemplatesDir();
|
||||
static bool registerProject(QETProject *);
|
||||
@@ -108,7 +108,7 @@ class QETApp : public QObject
|
||||
@brief common_elements_dir
|
||||
Directory containing the common elements collection
|
||||
*/
|
||||
static QString common_elements_dir;
|
||||
static QString m_overrided_common_elements_dir;
|
||||
#endif
|
||||
|
||||
#ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION
|
||||
@@ -208,9 +208,15 @@ class QETApp : public QObject
|
||||
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;
|
||||
|
||||
static QString m_common_element_dir;
|
||||
static bool m_common_element_dir_is_set;
|
||||
|
||||
static QString m_custom_element_dir;
|
||||
static bool m_custom_element_dir_is_set;
|
||||
|
||||
static QString m_user_custom_tbt_dir;
|
||||
|
||||
|
||||
public slots:
|
||||
void systray(QSystemTrayIcon::ActivationReason);
|
||||
|
||||
Reference in New Issue
Block a user