QTMFileDialog.cpp (TeXmacs-2.1.1-src) | : | QTMFileDialog.cpp (TeXmacs-2.1.2-src) | ||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
#include "image_files.hpp" | #include "image_files.hpp" | |||
QTMFileDialog::QTMFileDialog (QWidget * parent, const QString & caption, | QTMFileDialog::QTMFileDialog (QWidget * parent, const QString & caption, | |||
const QString & directory, const QString & filter) | const QString & directory, const QString & filter) | |||
: QDialog (parent) | : QDialog (parent) | |||
{ | { | |||
setWindowTitle (caption); | setWindowTitle (caption); | |||
hbox= new QHBoxLayout (this); | hbox= new QHBoxLayout (this); | |||
hbox->setContentsMargins (0, 0, 0, 0); | hbox->setContentsMargins (0, 0, 0, 0); | |||
file= new QMyFileDialog (0, caption, directory, filter); | file= new QMyFileDialog (0, caption, directory, filter); | |||
file->setOption(QFileDialog::DontUseNativeDialog, true); | ||||
hbox->addWidget (file); | hbox->addWidget (file); | |||
setLayout (hbox); | setLayout (hbox); | |||
setAcceptDrops(true); | setAcceptDrops(true); | |||
connect(file, SIGNAL(accepted()), this, SLOT(accept())); | connect(file, SIGNAL(accepted()), this, SLOT(accept())); | |||
connect(file, SIGNAL(finished(int)), this, SLOT(done(int))); | connect(file, SIGNAL(finished(int)), this, SLOT(done(int))); | |||
connect(file, SIGNAL(rejected()), this, SLOT(reject())); | connect(file, SIGNAL(rejected()), this, SLOT(reject())); | |||
} | } | |||
void QTMFileDialog::dragEnterEvent(QDragEnterEvent *event) | void QTMFileDialog::dragEnterEvent(QDragEnterEvent *event) | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |