0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00

PreviewReportWindow & SettingDialog have been moved to LimeReport namespace

This commit is contained in:
Arin Alex 2016-03-03 03:08:36 +03:00
parent dc4075a5b2
commit 5de7c36c8f
4 changed files with 12 additions and 2 deletions

View File

@ -39,6 +39,8 @@
#include <QScrollBar>
#include <QDesktopWidget>
namespace LimeReport{
PreviewReportWindow::PreviewReportWindow(ReportEnginePrivate *report,QWidget *parent, QSettings *settings, Qt::WindowFlags flags) :
QMainWindow(parent,flags),
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

View File

@ -42,7 +42,8 @@
namespace Ui {
class PreviewReportWindow;
}
using namespace LimeReport;
//using namespace LimeReport;
namespace LimeReport {
class PreviewReportWindow : public QMainWindow
{
Q_OBJECT
@ -94,5 +95,5 @@ private:
bool m_ownedSettings;
int m_priorScrolValue;
};
} //namespace LimeReport
#endif // LRPREVIEWREPORTWINDOW_H

View File

@ -1,6 +1,8 @@
#include "lrsettingdialog.h"
#include "ui_lrsettingdialog.h"
namespace LimeReport{
SettingDialog::SettingDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SettingDialog)
@ -45,3 +47,5 @@ void SettingDialog::setDefaultFont(const QFont &value)
ui->defaultFont->setCurrentFont(value);
ui->defaultFontSize->setValue(value.pointSize());
}
} // namespace LimeReport

View File

@ -7,6 +7,7 @@ namespace Ui {
class SettingDialog;
}
namespace LimeReport{
class SettingDialog : public QDialog
{
Q_OBJECT
@ -23,5 +24,6 @@ public:
private:
Ui::SettingDialog *ui;
};
} // namespace LimeReport
#endif // LRSETTINGDIALOG_H