[qet] [1775] TBT editor: logos manager: minor improvements

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1775
Author:   xavier
Date:     2012-05-09 04:31:46 +0200 (Wed, 09 May 2012)
Log Message:
-----------
TBT editor: logos manager: minor improvements

Modified Paths:
--------------
    trunk/sources/titleblock/qettemplateeditor.cpp
    trunk/sources/titleblock/templatecellwidget.cpp
    trunk/sources/titleblock/templatelogomanager.cpp

Modified: trunk/sources/titleblock/qettemplateeditor.cpp
===================================================================
--- trunk/sources/titleblock/qettemplateeditor.cpp	2012-05-09 02:31:45 UTC (rev 1774)
+++ trunk/sources/titleblock/qettemplateeditor.cpp	2012-05-09 02:31:46 UTC (rev 1775)
@@ -521,7 +521,7 @@
 	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_,

Modified: trunk/sources/titleblock/templatecellwidget.cpp
===================================================================
--- trunk/sources/titleblock/templatecellwidget.cpp	2012-05-09 02:31:45 UTC (rev 1774)
+++ trunk/sources/titleblock/templatecellwidget.cpp	2012-05-09 02:31:46 UTC (rev 1775)
@@ -21,6 +21,7 @@
 #include "nameslistwidget.h"
 #include "titleblocktemplate.h"
 #include "templatecommands.h"
+#include "qeticons.h"
 
 /**
 	Constructor
@@ -62,7 +63,7 @@
 	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 :"));

Modified: trunk/sources/titleblock/templatelogomanager.cpp
===================================================================
--- trunk/sources/titleblock/templatelogomanager.cpp	2012-05-09 02:31:45 UTC (rev 1774)
+++ trunk/sources/titleblock/templatelogomanager.cpp	2012-05-09 02:31:46 UTC (rev 1775)
@@ -17,6 +17,7 @@
 */
 #include "templatelogomanager.h"
 #include "titleblocktemplate.h"
+#include "qeticons.h"
 
 /**
 	Constructor
@@ -72,6 +73,8 @@
 	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);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/