forked from teamnwah/openmw-tes3coop
fixed missing initialisation of adjuster widget in file dialogue
This commit is contained in:
parent
d4b2a6b9f1
commit
63e0cf5154
4 changed files with 18 additions and 0 deletions
|
@ -17,6 +17,7 @@ CS::Editor::Editor() : mViewManager (mDocumentManager)
|
|||
setupDataFiles();
|
||||
|
||||
mNewGame.setLocalData (mLocal);
|
||||
mFileDialog.setLocalData (mLocal);
|
||||
|
||||
connect (&mViewManager, SIGNAL (newGameRequest ()), this, SLOT (createGame ()));
|
||||
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)));
|
||||
}
|
||||
|
||||
void CSVDoc::FileDialog::setLocalData (const boost::filesystem::path& localData)
|
||||
{
|
||||
mAdjusterWidget->setLocalData (localData);
|
||||
}
|
||||
|
||||
void CSVDoc::FileDialog::updateOpenButton(const QStringList &items)
|
||||
{
|
||||
QPushButton *openButton = projectButtonBox->button(QDialogButtonBox::Open);
|
||||
|
|
|
@ -4,9 +4,16 @@
|
|||
#include <QDialog>
|
||||
#include <QModelIndex>
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
|
||||
#include "components/contentselector/view/contentselector.hpp"
|
||||
#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 QSortFilterProxyModel;
|
||||
class QAbstractItemModel;
|
||||
|
@ -42,6 +49,8 @@ namespace CSVDoc
|
|||
public:
|
||||
explicit FileDialog(QWidget *parent = 0);
|
||||
|
||||
void setLocalData (const boost::filesystem::path& localData);
|
||||
|
||||
void openFile();
|
||||
void newFile();
|
||||
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
#include <QDialog>
|
||||
#include <QMetaType>
|
||||
|
||||
#ifndef CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
||||
#define CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
||||
Q_DECLARE_METATYPE (boost::filesystem::path)
|
||||
#endif
|
||||
|
||||
class QPushButton;
|
||||
|
||||
|
|
Loading…
Reference in a new issue