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:
xavier
2012-02-06 22:13:39 +00:00
parent 7ca84724ae
commit 7661b2f47e
4 changed files with 49 additions and 0 deletions

View File

@@ -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_);
}