mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-24 17:58:45 +00:00
Changed: #1306 Implemented core "open" action to load a form from an arbitrary location.
This commit is contained in:
parent
3c1895960c
commit
f809ba6ca3
1 changed files with 3 additions and 18 deletions
|
@ -112,24 +112,9 @@ namespace Plugin
|
|||
|
||||
void GeorgesEditorForm::open()
|
||||
{
|
||||
/*qDebug() << "GeorgesEditorForm::open()";
|
||||
if (!m_dockedWidgets.size())
|
||||
{
|
||||
m_dockedWidgets.append(new CGeorgesTreeViewDialog(m_mainDock));
|
||||
m_mainDock->addDockWidget(Qt::RightDockWidgetArea, m_dockedWidgets.last());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_dockedWidgets.append(new CGeorgesTreeViewDialog(m_mainDock));
|
||||
Q_ASSERT(m_dockedWidgets.size() > 1);
|
||||
m_mainDock->tabifyDockWidget(m_dockedWidgets.at(m_dockedWidgets.size() - 2), m_dockedWidgets.last());
|
||||
}*/
|
||||
|
||||
// TODO: FileDialog & loadFile();
|
||||
//m_mainDock->addDockWidget(Qt::TopDockWidgetArea, new CGeorgesTreeViewDialog(m_mainDock, true));
|
||||
//m_mainDock->addDockWidget(Qt::LeftDockWidgetArea, new CGeorgesTreeViewDialog(m_mainDock, true));
|
||||
//QString fileName = QFileDialog::getOpenFileName();
|
||||
//loadFile(fileName);
|
||||
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Form"));
|
||||
if(!fileName.isNull())
|
||||
loadFile(fileName);
|
||||
}
|
||||
|
||||
void GeorgesEditorForm::newFile()
|
||||
|
|
Loading…
Reference in a new issue