mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-05 20:19:58 +01:00
Ajout d'icones dans le panel d'elements et dans l'editeur d'element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@241 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -69,8 +69,8 @@ void QETElementEditor::setupActions() {
|
||||
deselectall = new QAction( tr("D\351s\351lectionner tout"), this);
|
||||
inv_select = new QAction( tr("Inverser la s\351lection"), this);
|
||||
edit_delete = new QAction(QIcon(":/ico/delete.png"), tr("&Supprimer"), this);
|
||||
edit_size_hs = new QAction( tr("\311diter la taille et le point de saisie"), this);
|
||||
edit_names = new QAction( tr("\311diter les noms"), this);
|
||||
edit_size_hs = new QAction(QIcon(":/ico/hotspot.png"), tr("\311diter la taille et le point de saisie"), this);
|
||||
edit_names = new QAction(QIcon(":/ico/names.png"), tr("\311diter les noms"), this);
|
||||
edit_ori = new QAction(QIcon(":/ico/orientations.png"), tr("\311diter les orientations"), this);
|
||||
edit_raise = new QAction(QIcon(":/ico/raise.png"), tr("Rapprocher"), this);
|
||||
edit_lower = new QAction(QIcon(":/ico/lower.png"), tr("\311loigner"), this);
|
||||
|
||||
@@ -150,6 +150,7 @@ void ElementsPanel::addDir(QTreeWidgetItem *qtwi_parent, QString adr_dossier, QS
|
||||
|
||||
// creation du QTreeWidgetItem representant le dossier
|
||||
QTreeWidgetItem *qtwi_dossier = new QTreeWidgetItem(qtwi_parent, QStringList(nom_categorie));
|
||||
qtwi_dossier -> setIcon(0, QIcon(":/ico/folder.png"));
|
||||
QLinearGradient t(0, 0, 200, 0);
|
||||
t.setColorAt(0, QColor("#e8e8e8"));
|
||||
t.setColorAt(1, QColor("#ffffff"));
|
||||
@@ -208,6 +209,13 @@ void ElementsPanel::reload() {
|
||||
// chargement des elements de la collection utilisateur
|
||||
addDir(invisibleRootItem(), QETApp::customElementsDir(), tr("Collection utilisateur"));
|
||||
|
||||
// icones
|
||||
QList<QTreeWidgetItem *> items = findItems("*", Qt::MatchWildcard);
|
||||
if (items.count() == 2) {
|
||||
items[0] -> setIcon(0, QIcon(":/ico/qet-16.png"));
|
||||
items[1] -> setIcon(0, QIcon(":/ico/folder_home.png"));
|
||||
}
|
||||
|
||||
// reselectionne le dernier element selectionne
|
||||
if (!last_selected_item.isNull()) {
|
||||
QTreeWidgetItem *qtwi = findFile(last_selected_item);
|
||||
|
||||
BIN
ico/folder.png
Executable file
BIN
ico/folder.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 646 B |
BIN
ico/folder_home.png
Executable file
BIN
ico/folder_home.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 713 B |
BIN
ico/hotspot.png
Normal file
BIN
ico/hotspot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 179 B |
BIN
ico/names.png
Executable file
BIN
ico/names.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
BIN
ico/remove.png
Normal file
BIN
ico/remove.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -29,14 +29,18 @@
|
||||
<file>ico/exit.png</file>
|
||||
<file>ico/export.png</file>
|
||||
<file>ico/fileclose.png</file>
|
||||
<file>ico/folder.png</file>
|
||||
<file>ico/folder_home.png</file>
|
||||
<file>ico/forbidden.png</file>
|
||||
<file>ico/ground.png</file>
|
||||
<file>ico/hotspot.png</file>
|
||||
<file>ico/import.png</file>
|
||||
<file>ico/info.png</file>
|
||||
<file>ico/line.png</file>
|
||||
<file>ico/lower.png</file>
|
||||
<file>ico/masquer.png</file>
|
||||
<file>ico/move.png</file>
|
||||
<file>ico/names.png</file>
|
||||
<file>ico/neutral.png</file>
|
||||
<file>ico/new.png</file>
|
||||
<file>ico/north.png</file>
|
||||
|
||||
Reference in New Issue
Block a user