mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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:
@@ -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_));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user