mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
PreviewReportWindow & SettingDialog have been moved to LimeReport namespace
This commit is contained in:
parent
dc4075a5b2
commit
5de7c36c8f
@ -39,6 +39,8 @@
|
|||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
|
|
||||||
|
namespace LimeReport{
|
||||||
|
|
||||||
PreviewReportWindow::PreviewReportWindow(ReportEnginePrivate *report,QWidget *parent, QSettings *settings, Qt::WindowFlags flags) :
|
PreviewReportWindow::PreviewReportWindow(ReportEnginePrivate *report,QWidget *parent, QSettings *settings, Qt::WindowFlags flags) :
|
||||||
QMainWindow(parent,flags),
|
QMainWindow(parent,flags),
|
||||||
ui(new Ui::PreviewReportWindow), m_currentPage(1), m_changingPage(false), m_settings(settings), m_ownedSettings(false),
|
ui(new Ui::PreviewReportWindow), m_currentPage(1), m_changingPage(false), m_settings(settings), m_ownedSettings(false),
|
||||||
@ -441,3 +443,4 @@ void PreviewReportWindow::slotSliderMoved(int value)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}// namespace LimeReport
|
||||||
|
@ -42,7 +42,8 @@
|
|||||||
namespace Ui {
|
namespace Ui {
|
||||||
class PreviewReportWindow;
|
class PreviewReportWindow;
|
||||||
}
|
}
|
||||||
using namespace LimeReport;
|
//using namespace LimeReport;
|
||||||
|
namespace LimeReport {
|
||||||
class PreviewReportWindow : public QMainWindow
|
class PreviewReportWindow : public QMainWindow
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -94,5 +95,5 @@ private:
|
|||||||
bool m_ownedSettings;
|
bool m_ownedSettings;
|
||||||
int m_priorScrolValue;
|
int m_priorScrolValue;
|
||||||
};
|
};
|
||||||
|
} //namespace LimeReport
|
||||||
#endif // LRPREVIEWREPORTWINDOW_H
|
#endif // LRPREVIEWREPORTWINDOW_H
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include "lrsettingdialog.h"
|
#include "lrsettingdialog.h"
|
||||||
#include "ui_lrsettingdialog.h"
|
#include "ui_lrsettingdialog.h"
|
||||||
|
|
||||||
|
namespace LimeReport{
|
||||||
|
|
||||||
SettingDialog::SettingDialog(QWidget *parent) :
|
SettingDialog::SettingDialog(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::SettingDialog)
|
ui(new Ui::SettingDialog)
|
||||||
@ -45,3 +47,5 @@ void SettingDialog::setDefaultFont(const QFont &value)
|
|||||||
ui->defaultFont->setCurrentFont(value);
|
ui->defaultFont->setCurrentFont(value);
|
||||||
ui->defaultFontSize->setValue(value.pointSize());
|
ui->defaultFontSize->setValue(value.pointSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace LimeReport
|
||||||
|
@ -7,6 +7,7 @@ namespace Ui {
|
|||||||
class SettingDialog;
|
class SettingDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace LimeReport{
|
||||||
class SettingDialog : public QDialog
|
class SettingDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -23,5 +24,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
Ui::SettingDialog *ui;
|
Ui::SettingDialog *ui;
|
||||||
};
|
};
|
||||||
|
} // namespace LimeReport
|
||||||
|
|
||||||
#endif // LRSETTINGDIALOG_H
|
#endif // LRSETTINGDIALOG_H
|
||||||
|
Loading…
Reference in New Issue
Block a user