mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
2417d9d911
commit
6b6730f469
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user