set eol-style.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20564 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-28 09:45:50 +00:00
parent 2417d9d911
commit 6b6730f469
2 changed files with 28 additions and 28 deletions

View File

@ -15,10 +15,10 @@
#include "qt_helpers.h"
#include "frontends/LyXView.h"
#include <QCloseEvent>
#include <QSettings>
#include <QShowEvent>
#include <QCloseEvent>
#include <QSettings>
#include <QShowEvent>
using std::string;
namespace lyx {
@ -241,26 +241,26 @@ void GuiDialog::setController(Controller * controller)
}
void GuiDialog::showEvent(QShowEvent * e)
{
#if (QT_VERSION >= 0x040200)
QSettings settings;
string key = name_ + "/geometry";
restoreGeometry(settings.value(key.c_str()).toByteArray());
#endif
QDialog::showEvent(e);
}
void GuiDialog::closeEvent(QCloseEvent * e)
{
#if (QT_VERSION >= 0x040200)
QSettings settings;
string key = name_ + "/geometry";
settings.setValue(key.c_str(), saveGeometry());
#endif
QDialog::closeEvent(e);
}
void GuiDialog::showEvent(QShowEvent * e)
{
#if (QT_VERSION >= 0x040200)
QSettings settings;
string key = name_ + "/geometry";
restoreGeometry(settings.value(key.c_str()).toByteArray());
#endif
QDialog::showEvent(e);
}
void GuiDialog::closeEvent(QCloseEvent * e)
{
#if (QT_VERSION >= 0x040200)
QSettings settings;
string key = name_ + "/geometry";
settings.setValue(key.c_str(), saveGeometry());
#endif
QDialog::closeEvent(e);
}
} // namespace frontend
} // namespace lyx

View File

@ -79,10 +79,10 @@ public:
/// default: do nothing
virtual void updateContents() {}
///
void closeEvent(QCloseEvent *);
///
void showEvent(QShowEvent *);
void closeEvent(QCloseEvent *);
///
void showEvent(QShowEvent *);
protected:
/// Hide the dialog.
virtual void hideView();