From 7c75e2f0bf46c5ec255d30ac0df23cfb6de9f967 Mon Sep 17 00:00:00 2001 From: xavier Date: Wed, 9 May 2012 02:31:46 +0000 Subject: [PATCH] TBT editor: logos manager: minor improvements git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1775 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/titleblock/qettemplateeditor.cpp | 2 +- sources/titleblock/templatecellwidget.cpp | 3 ++- sources/titleblock/templatelogomanager.cpp | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sources/titleblock/qettemplateeditor.cpp b/sources/titleblock/qettemplateeditor.cpp index aa2e9308c..48909fc8d 100644 --- a/sources/titleblock/qettemplateeditor.cpp +++ b/sources/titleblock/qettemplateeditor.cpp @@ -521,7 +521,7 @@ void QETTitleBlockTemplateEditor::initWidgets() { Initialize the logo manager */ void QETTitleBlockTemplateEditor::initLogoManager() { - logo_manager_ = new TitleBlockTemplateLogoManager(tb_template_); + logo_manager_ = new TitleBlockTemplateLogoManager(tb_template_, this); logo_manager_ -> setReadOnly(read_only_); connect( logo_manager_, diff --git a/sources/titleblock/templatecellwidget.cpp b/sources/titleblock/templatecellwidget.cpp index 50e9fd4bd..73aa7ec3c 100644 --- a/sources/titleblock/templatecellwidget.cpp +++ b/sources/titleblock/templatecellwidget.cpp @@ -21,6 +21,7 @@ #include "nameslistwidget.h" #include "titleblocktemplate.h" #include "templatecommands.h" +#include "qeticons.h" /** Constructor @@ -62,7 +63,7 @@ void TitleBlockTemplateCellWidget::initWidgets() { logo_label_ = new QLabel(tr("Logo")); logo_input_ = new QComboBox(); logo_input_ -> addItem(tr("Aucun logo")); - add_logo_input_ = new QPushButton(tr("G\351rer les logos")); + add_logo_input_ = new QPushButton(QET::Icons::InsertImage, tr("G\351rer les logos")); // widgets specific to text cells label_checkbox_ = new QCheckBox(tr("Afficher un label :")); diff --git a/sources/titleblock/templatelogomanager.cpp b/sources/titleblock/templatelogomanager.cpp index 9389dced6..33625b7de 100644 --- a/sources/titleblock/templatelogomanager.cpp +++ b/sources/titleblock/templatelogomanager.cpp @@ -17,6 +17,7 @@ */ #include "templatelogomanager.h" #include "titleblocktemplate.h" +#include "qeticons.h" /** Constructor @@ -72,6 +73,8 @@ void TitleBlockTemplateLogoManager::initWidgets() { open_dialog_dir_ = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation); setWindowTitle(tr("Gestionnaire de logos")); + setWindowIcon(QET::Icons::InsertImage); + setWindowFlags(Qt::Dialog); logos_label_ = new QLabel(tr("Logos embarqu\351s dans ce mod\350le :")); logos_view_ = new QListWidget(); logos_view_ -> setViewMode(QListView::IconMode);