Title block template editor: now write the preview width to application settings.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1538 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-02-27 18:20:33 +00:00
parent 7a955b777f
commit f7d27f25a1
4 changed files with 35 additions and 8 deletions

View File

@@ -23,7 +23,6 @@
#include "templatecommands.h"
#include "templatecellsset.h"
#include "dimensionwidget.h"
#include "qetapp.h"
#include "qeticons.h"
#define ROW_OFFSET 2
#define COL_OFFSET 1
@@ -758,12 +757,15 @@ void TitleBlockTemplateView::setReadOnly(bool read_only) {
*/
void TitleBlockTemplateView::setPreviewWidth(int width) {
if (preview_width_ == width) return;
int former_preview_width = preview_width_;
preview_width_ = width;
applyColumnsWidths();
updateTotalWidthLabel();
//adjustSceneRect();
centerOn(form_);
/// TODO center again the preview()
if (tbgrid_) {
applyColumnsWidths();
updateTotalWidthLabel();
//adjustSceneRect();
centerOn(form_);
}
emit(previewWidthChanged(former_preview_width, preview_width_));
}
/**