mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Elements collection now have a title and an icon.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1491 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -256,6 +256,8 @@ void QETApp::newElementEditor() {
|
||||
ElementsCollection *QETApp::commonElementsCollection() {
|
||||
if (!common_collection) {
|
||||
common_collection = new FileElementsCollection(QETApp::commonElementsDir());
|
||||
common_collection -> setTitle(tr("Collection QET"));
|
||||
common_collection -> setIcon(QIcon(":/ico/16x16/qet.png"));
|
||||
common_collection -> setProtocol("common");
|
||||
common_collection -> setCache(collections_cache_);
|
||||
}
|
||||
@@ -268,6 +270,8 @@ ElementsCollection *QETApp::commonElementsCollection() {
|
||||
ElementsCollection *QETApp::customElementsCollection() {
|
||||
if (!custom_collection) {
|
||||
custom_collection = new FileElementsCollection(QETApp::customElementsDir());
|
||||
custom_collection -> setTitle(tr("Collection utilisateur"));
|
||||
custom_collection -> setIcon(QIcon(":/ico/16x16/go-home.png"));
|
||||
custom_collection -> setProtocol("custom");
|
||||
custom_collection -> setCache(collections_cache_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user