Title block template editor: the logos combo box is now updated after every change made from the logo manager.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1419 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2011-12-30 02:42:50 +00:00
parent 5a1d557668
commit 853d169549
4 changed files with 28 additions and 3 deletions

View File

@@ -50,6 +50,13 @@ QString TitleBlockTemplateLogoManager::currentLogo() const {
return(current_item -> text());
}
/**
Emit the logosChanged() signal.
*/
void TitleBlockTemplateLogoManager::emitLogosChangedSignal() {
emit(logosChanged(const_cast<const TitleBlockTemplate *>(managed_template_)));
}
/**
Initialize widgets composing the Logo manager
*/
@@ -264,6 +271,7 @@ void TitleBlockTemplateLogoManager::addLogo() {
open_dialog_dir_ = QDir(filepath);
if (managed_template_ -> addLogoFromFile(filepath, logo_name)) {
fillView();
emitLogosChangedSignal();
}
}
@@ -275,7 +283,8 @@ void TitleBlockTemplateLogoManager::removeLogo() {
if (current_logo.isNull()) return;
if (managed_template_ -> removeLogo(current_logo)) {
fillView();
fillView();
emitLogosChangedSignal();
}
}
@@ -317,5 +326,6 @@ void TitleBlockTemplateLogoManager::renameLogo() {
if (managed_template_ -> renameLogo(current_logo, entered_name)) {
fillView();
emitLogosChangedSignal();
}
}