CalcWindow::CalcWindow(QSettings *s, bool isModal, QWidget *parent) : AbstractLogWindow(this->objectName(), s, isModal, parent)
AbstractLogWindow::AbstractLogWindow(QString winName, QSettings *s, bool isModal, QWidget *parent) :QWidget(parent){ m_WinSet = s; m_WinName = winName; uint winState = (isModal? Qt::Dialog : Qt::Window); m_WinSet->beginGroup(m_WinName); setGeometry(m_WinSet->value("Geometry", geometry()).toRect()); setWindowFlags(Qt::WindowFlags(m_WinSet->value("WondowFlags", winState).toUInt())); m_WinSet->endGroup();}AbstractLogWindow::~AbstractLogWindow(){ m_WinSet->beginGroup(m_WinName); m_WinSet->setValue("Geometry", geometry()); m_WinSet->setValue("WondowFlags", uint(windowFlags())); m_WinSet->endGroup();}
CalcWindow::CalcWindow(QSettings *s, bool isModal, QWidget *parent) : AbstractLogWindow("CalcWindow", s, isModal, parent)
C++ (Qt)AbstractLogWindow::AbstractLogWindow(QString winName, // ненужная подача по значениюAbstractLogWindow::AbstractLogWindow(const QString & winName, // на плюсах так
C++ (Qt)CalcWindow * calc = new CalcWindow(.. );calc->LoadSettings(...);
C++ (Qt)CalcWindow::CalcWindow(QSettings *s, bool isModal, QWidget *parent) :