added pic open dialog at ui
This commit is contained in:
parent
4aa2fd844e
commit
dfa0428cc2
9 changed files with 132 additions and 121 deletions
|
@ -19,10 +19,11 @@
|
|||
#include "SnapmaticWidget.h"
|
||||
#include "ui_SnapmaticWidget.h"
|
||||
#include "SnapmaticPicture.h"
|
||||
#include "PictureDialog.h"
|
||||
#include <QPixmap>
|
||||
|
||||
SnapmaticWidget::SnapmaticWidget(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
SnapmaticWidget::SnapmaticWidget(ProfileDatabase *profileDB, QWidget *parent) :
|
||||
QWidget(parent), profileDB(profileDB),
|
||||
ui(new Ui::SnapmaticWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -44,3 +45,14 @@ void SnapmaticWidget::setSnapmaticPicture(SnapmaticPicture *picture, QString pic
|
|||
smpic = picture;
|
||||
picPath = picturePath;
|
||||
}
|
||||
|
||||
void SnapmaticWidget::on_cmdView_clicked()
|
||||
{
|
||||
PictureDialog *picDialog = new PictureDialog(profileDB, this);
|
||||
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||
picDialog->setSnapmaticPicture(smpic, true);
|
||||
picDialog->setModal(true);
|
||||
picDialog->show();
|
||||
picDialog->exec();
|
||||
picDialog->deleteLater();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue