mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
TBT editor: logos manager: minor improvements
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1775 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -521,7 +521,7 @@ void QETTitleBlockTemplateEditor::initWidgets() {
|
|||||||
Initialize the logo manager
|
Initialize the logo manager
|
||||||
*/
|
*/
|
||||||
void QETTitleBlockTemplateEditor::initLogoManager() {
|
void QETTitleBlockTemplateEditor::initLogoManager() {
|
||||||
logo_manager_ = new TitleBlockTemplateLogoManager(tb_template_);
|
logo_manager_ = new TitleBlockTemplateLogoManager(tb_template_, this);
|
||||||
logo_manager_ -> setReadOnly(read_only_);
|
logo_manager_ -> setReadOnly(read_only_);
|
||||||
connect(
|
connect(
|
||||||
logo_manager_,
|
logo_manager_,
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "nameslistwidget.h"
|
#include "nameslistwidget.h"
|
||||||
#include "titleblocktemplate.h"
|
#include "titleblocktemplate.h"
|
||||||
#include "templatecommands.h"
|
#include "templatecommands.h"
|
||||||
|
#include "qeticons.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructor
|
Constructor
|
||||||
@@ -62,7 +63,7 @@ void TitleBlockTemplateCellWidget::initWidgets() {
|
|||||||
logo_label_ = new QLabel(tr("Logo"));
|
logo_label_ = new QLabel(tr("Logo"));
|
||||||
logo_input_ = new QComboBox();
|
logo_input_ = new QComboBox();
|
||||||
logo_input_ -> addItem(tr("Aucun logo"));
|
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
|
// widgets specific to text cells
|
||||||
label_checkbox_ = new QCheckBox(tr("Afficher un label :"));
|
label_checkbox_ = new QCheckBox(tr("Afficher un label :"));
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "templatelogomanager.h"
|
#include "templatelogomanager.h"
|
||||||
#include "titleblocktemplate.h"
|
#include "titleblocktemplate.h"
|
||||||
|
#include "qeticons.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructor
|
Constructor
|
||||||
@@ -72,6 +73,8 @@ void TitleBlockTemplateLogoManager::initWidgets() {
|
|||||||
open_dialog_dir_ = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
|
open_dialog_dir_ = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
|
||||||
|
|
||||||
setWindowTitle(tr("Gestionnaire de logos"));
|
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_label_ = new QLabel(tr("Logos embarqu\351s dans ce mod\350le :"));
|
||||||
logos_view_ = new QListWidget();
|
logos_view_ = new QListWidget();
|
||||||
logos_view_ -> setViewMode(QListView::IconMode);
|
logos_view_ -> setViewMode(QListView::IconMode);
|
||||||
|
|||||||
Reference in New Issue
Block a user