mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Image can be edited in the dock widget
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3944 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
29
sources/ui/imagepropertiesdialog.cpp
Normal file
29
sources/ui/imagepropertiesdialog.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "imagepropertiesdialog.h"
|
||||
#include "ui_imagepropertiesdialog.h"
|
||||
#include "imagepropertieswidget.h"
|
||||
#include "diagramimageitem.h"
|
||||
|
||||
ImagePropertiesDialog::ImagePropertiesDialog(DiagramImageItem *image, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::ImagePropertiesDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
m_editor = new ImagePropertiesWidget(image, this);
|
||||
ui->verticalLayout->insertWidget(0, m_editor);
|
||||
}
|
||||
|
||||
ImagePropertiesDialog::~ImagePropertiesDialog() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ImagePropertiesDialog::setImageItem(DiagramImageItem *image) {
|
||||
m_editor->setImageItem(image);
|
||||
}
|
||||
|
||||
void ImagePropertiesDialog::on_buttonBox_accepted() {
|
||||
m_editor->apply();
|
||||
}
|
||||
|
||||
void ImagePropertiesDialog::on_buttonBox_rejected() {
|
||||
m_editor->reset();
|
||||
}
|
||||
Reference in New Issue
Block a user