コード例 #1
0
void QG_DlgOptionsMakerCam::loadSettings() {

    RS_SETTINGS->beginGroup("/ExportMakerCam");

    updateCheckbox(checkInvisibleLayers, "ExportInvisibleLayers", 0);
    updateCheckbox(checkConstructionLayers, "ExportConstructionLayers", 0);
    updateCheckbox(checkBlocksInline, "WriteBlocksInline", 1);
    updateCheckbox(checkEllipsesToBeziers, "ConvertEllipsesToBeziers", 1);

    RS_SETTINGS->endGroup();
}
コード例 #2
0
ファイル: QtCheckHeaderView.cpp プロジェクト: GLDsuh-a/qt-1
void QtCheckHeaderView::setModel(QAbstractItemModel* model)
{
    mSectionRects.clear();
    QHeaderView::setModel(model);

    foreach(int logicalIndex, mCheckableIndexes)
    {
        updateCheckbox(logicalIndex);
    }