C++ (Qt)QString objectName () constvoid setObjectName ( const QString & name )
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); setWindowFlags(Qt::WindowFlags(m_WinSet->value("WondowFlags", winState).toUInt())); setGeometry(m_WinSet->value("Geometry", geometry()).toRect()); m_WinSet->endGroup();}AbstractLogWindow::~AbstractLogWindow(){ m_WinSet->beginGroup(m_WinName); m_WinSet->setValue("Geometry", geometry()); m_WinSet->setValue("WondowFlags", uint(windowFlags())); m_WinSet->endGroup();}