Commit 319d68a8 authored by Nick Shaforostoff's avatar Nick Shaforostoff

fix osx build

parent dd0eaa87
......@@ -7,8 +7,12 @@ namespace KStandardGuiItem
{
static inline int save(){return 0;}
static inline int discard(){return 0;}
static inline int yes(){return 0;}
static inline int no(){return 0;}
};
#define KGuiItem(x) 0
class KMessageBox: public QMessageBox
{
public:
......@@ -23,6 +27,17 @@ public:
Q_UNUSED(y) Q_UNUSED(n) Q_UNUSED(c) Q_UNUSED(dontAskAgainName)
return warning(parent, caption, text, Yes|No|Cancel, Yes);
}
static QMessageBox::StandardButton questionYesNoCancel(QWidget *parent, const QString &text,
const QString &caption,
int y=0,
int n=0,
int c=0,
const QString &dontAskAgainName=QString())
{
Q_UNUSED(y) Q_UNUSED(n) Q_UNUSED(c) Q_UNUSED(dontAskAgainName)
return question(parent, caption, text, Yes|No|Cancel, Yes);
}
static QMessageBox::StandardButton questionYesNo(QWidget *parent, const QString &text,
const QString &caption,
int y=0,
......
......@@ -141,12 +141,14 @@ ProjectLocal::ProjectLocal()
{
QSettings s;
mRole = s.value("Project/AuthorRole", mRole).toInt();
mSourceDir = s.value("Project/SourceDir", mSourceDir).toString();
}
void ProjectLocal::save()
{
QSettings s;
s.setValue(QStringLiteral("Project/AuthorRole"), mRole);
s.setValue(QStringLiteral("Project/SourceDir"), mSourceDir);
}
EditorTab* ProjectBase::fileOpen(QString filePath, int entry, bool setAsActive, const QString& mergeFile, bool silent)
......
......@@ -22,6 +22,9 @@ public:
void setFirstRun( bool v ){mFirstRun = v;}
bool firstRun() const{return mFirstRun;}
void setSourceDir( const QString& s){mSourceDir = s;}
QString sourceDir() const{return mSourceDir;}
void save();
void setDefaults(){}
protected:
......@@ -29,6 +32,7 @@ public:
// Personal
int mRole;
bool mFirstRun;
QString mSourceDir;
private:
};
......
......@@ -37,7 +37,6 @@
#include <klocalizedstring.h>
#include <kmessagebox.h>
#include <knotification.h>
#include <QLocale>
#include <QTimer>
......@@ -51,6 +50,8 @@
#include "projectmodel.h"
#include "webquerycontroller.h"
#include <knotification.h>
#include <kio/global.h>
#include <kjob.h>
#include <kjobtrackerinterface.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment