mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
fixed missing initialisation of adjuster widget in file dialogue
This commit is contained in:
parent
d4b2a6b9f1
commit
63e0cf5154
@ -17,6 +17,7 @@ CS::Editor::Editor() : mViewManager (mDocumentManager)
|
|||||||
setupDataFiles();
|
setupDataFiles();
|
||||||
|
|
||||||
mNewGame.setLocalData (mLocal);
|
mNewGame.setLocalData (mLocal);
|
||||||
|
mFileDialog.setLocalData (mLocal);
|
||||||
|
|
||||||
connect (&mViewManager, SIGNAL (newGameRequest ()), this, SLOT (createGame ()));
|
connect (&mViewManager, SIGNAL (newGameRequest ()), this, SLOT (createGame ()));
|
||||||
connect (&mViewManager, SIGNAL (newAddonRequest ()), this, SLOT (createAddon ()));
|
connect (&mViewManager, SIGNAL (newAddonRequest ()), this, SLOT (createAddon ()));
|
||||||
|
@ -48,6 +48,11 @@ CSVDoc::FileDialog::FileDialog(QWidget *parent) :
|
|||||||
connect (this, SIGNAL (signalUpdateCreateButton(bool, int)), this, SLOT (slotEnableCreateButton(bool, int)));
|
connect (this, SIGNAL (signalUpdateCreateButton(bool, int)), this, SLOT (slotEnableCreateButton(bool, int)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVDoc::FileDialog::setLocalData (const boost::filesystem::path& localData)
|
||||||
|
{
|
||||||
|
mAdjusterWidget->setLocalData (localData);
|
||||||
|
}
|
||||||
|
|
||||||
void CSVDoc::FileDialog::updateOpenButton(const QStringList &items)
|
void CSVDoc::FileDialog::updateOpenButton(const QStringList &items)
|
||||||
{
|
{
|
||||||
QPushButton *openButton = projectButtonBox->button(QDialogButtonBox::Open);
|
QPushButton *openButton = projectButtonBox->button(QDialogButtonBox::Open);
|
||||||
|
@ -4,9 +4,16 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QModelIndex>
|
#include <QModelIndex>
|
||||||
|
|
||||||
|
#include <boost/filesystem/path.hpp>
|
||||||
|
|
||||||
#include "components/contentselector/view/contentselector.hpp"
|
#include "components/contentselector/view/contentselector.hpp"
|
||||||
#include "ui_datafilespage.h"
|
#include "ui_datafilespage.h"
|
||||||
|
|
||||||
|
#ifndef CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
||||||
|
#define CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
||||||
|
Q_DECLARE_METATYPE (boost::filesystem::path)
|
||||||
|
#endif
|
||||||
|
|
||||||
class QDialogButtonBox;
|
class QDialogButtonBox;
|
||||||
class QSortFilterProxyModel;
|
class QSortFilterProxyModel;
|
||||||
class QAbstractItemModel;
|
class QAbstractItemModel;
|
||||||
@ -42,6 +49,8 @@ namespace CSVDoc
|
|||||||
public:
|
public:
|
||||||
explicit FileDialog(QWidget *parent = 0);
|
explicit FileDialog(QWidget *parent = 0);
|
||||||
|
|
||||||
|
void setLocalData (const boost::filesystem::path& localData);
|
||||||
|
|
||||||
void openFile();
|
void openFile();
|
||||||
void newFile();
|
void newFile();
|
||||||
|
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|
||||||
|
#ifndef CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
||||||
|
#define CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
||||||
Q_DECLARE_METATYPE (boost::filesystem::path)
|
Q_DECLARE_METATYPE (boost::filesystem::path)
|
||||||
|
#endif
|
||||||
|
|
||||||
class QPushButton;
|
class QPushButton;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user