• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ createLayout函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中createLayout函数的典型用法代码示例。如果您正苦于以下问题:C++ createLayout函数的具体用法?C++ createLayout怎么用?C++ createLayout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了createLayout函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: ModelObjectInspectorView

MaterialInfraredTransparentInspectorView::MaterialInfraredTransparentInspectorView(bool isIP, const openstudio::model::Model& model, QWidget * parent)
  : ModelObjectInspectorView(model, true, parent),
    m_nameEdit(nullptr),
    m_isIP(isIP)
{
  createLayout();
}
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:7,代码来源:MaterialInfraredTransparentInspectorView.cpp


示例2: QAbstractButton

CollapsibleInspectorHeader::CollapsibleInspectorHeader(QString text,
  QWidget * parent)
  : QAbstractButton(parent),
  m_text(text)
{
  createLayout();
}
开发者ID:Rahjou,项目名称:OpenStudio,代码行数:7,代码来源:CollapsibleInspector.cpp


示例3: QFETCH

void TestBoomaga::test_PagePosition()
{
    QFETCH(QString, expected);

    QString dataTag = QTest::currentDataTag();
    QString layoutName = dataTag.section(";", 0, 0);
    QString sheetRotationName = dataTag.section(";", 1, 1);

    Rotation sheetRotation = StrToRotation(sheetRotationName);
    LayoutNUp *layout = createLayout(layoutName);

    QStringList result;
    result <<     "+-" + QString("--").repeated(layout->mPageCountHoriz) + "+";
    for(int i=0; i< layout->mPageCountVert; ++i)
        result << "| " + QString(". ").repeated(layout->mPageCountHoriz) + "|";
    result <<     "+-" + QString("--").repeated(layout->mPageCountHoriz) + "+";


    for(int i=0; i<layout->mPageCountHoriz * layout->mPageCountVert; ++i)
    {
        Layout::PagePosition pos = layout->calcPagePosition(i, sheetRotation);
        result[pos.row + 1].replace(pos.col * 2 + 2, 1, QString("%1").arg(i));
    }

    if (result.join("") != expected)
    {
        QString r=result.join("\n");
        QString msg = QString("Positions are not the same\n  Actual:\n%1\n   Expected:\n%2")
                    .arg(r.replace("+|", "+\n|").replace("||","|\n|").replace("|+", "|\n+"))
                    .arg(expected.replace("+|", "+\n|").replace("||","|\n|").replace("|+", "|\n+"));
        QFAIL(msg.toLocal8Bit());
    }
}
开发者ID:liunix1982,项目名称:boomaga,代码行数:33,代码来源:testboomaga.cpp


示例4: KviOptionsWidget

OptionsWidget_identityAdvanced::OptionsWidget_identityAdvanced(QWidget * parent)
: KviOptionsWidget(parent)
{
	m_pISelector=0;
	m_pWSelector=0;
	m_pSSelector=0;

	m_sModeStr = KVI_OPTION_STRING(KviOption_stringDefaultUserMode);
	m_bI = m_sModeStr.contains('i');
	m_bW = m_sModeStr.contains('w');
	m_bS = m_sModeStr.contains('s');

	createLayout();
	layout()->setMargin(10);

	KviTalGroupBox * gbox = addGroupBox(0,0,0,0,Qt::Horizontal,__tr2qs_ctx("User Mode","options"));
	m_pISelector = addBoolSelector(gbox,__tr2qs_ctx("Invisible (+i)","options"),&m_bI);
	m_pSSelector = addBoolSelector(gbox,__tr2qs_ctx("Server notices (+s)","options"),&m_bS);
	m_pWSelector = addBoolSelector(gbox,__tr2qs_ctx("Wallops (+w)","options"),&m_bW);

	gbox = addGroupBox(0,1,0,1,Qt::Horizontal,__tr2qs_ctx("Default Messages","options"));

	KviStringSelector * sel = addStringSelector(gbox, __tr2qs_ctx("Part message:","options"),KviOption_stringPartMessage);
	sel->setMinimumLabelWidth(120);

	mergeTip(sel,__tr2qs_ctx("<center>This is the default part message that will be used when you<br>" \
			"leave a channel by closing a channel window.</center>","options"));

	sel = addStringSelector(gbox, __tr2qs_ctx("Quit message:","options"),KviOption_stringQuitMessage);
	sel->setMinimumLabelWidth(120);
	mergeTip(sel,__tr2qs_ctx("<center>This is the default quit message that will be used when you<br>" \
			"quit your IRC session by closing the console window or disconnecting by pressing the disconnect button.</center>","options"));

	addRowSpacer(0,2,0,2);
}
开发者ID:wodim,项目名称:KVIrc,代码行数:35,代码来源:OptionsWidget_identity.cpp


示例5: KviOptionsWidget

OptionsWidget_standardColors::OptionsWidget_standardColors(QWidget * parent)
: KviOptionsWidget(parent)
{
	setObjectName("stdcolors");
	createLayout();

	addColorSelector(0,0,0,0,"0:",&(KVI_OPTION_MIRCCOLOR(0)));
	addColorSelector(1,0,1,0,"1:",&(KVI_OPTION_MIRCCOLOR(1)));
	addColorSelector(2,0,2,0,"2:",&(KVI_OPTION_MIRCCOLOR(2)));
	addColorSelector(3,0,3,0,"3:",&(KVI_OPTION_MIRCCOLOR(3)));
	addColorSelector(0,1,0,1,"4:",&(KVI_OPTION_MIRCCOLOR(4)));
	addColorSelector(1,1,1,1,"5:",&(KVI_OPTION_MIRCCOLOR(5)));
	addColorSelector(2,1,2,1,"6:",&(KVI_OPTION_MIRCCOLOR(6)));
	addColorSelector(3,1,3,1,"7:",&(KVI_OPTION_MIRCCOLOR(7)));
	addColorSelector(0,2,0,2,"8:",&(KVI_OPTION_MIRCCOLOR(8)));
	addColorSelector(1,2,1,2,"9:",&(KVI_OPTION_MIRCCOLOR(9)));
	addColorSelector(2,2,2,2,"10:",&(KVI_OPTION_MIRCCOLOR(10)));
	addColorSelector(3,2,3,2,"11:",&(KVI_OPTION_MIRCCOLOR(11)));
	addColorSelector(0,3,0,3,"12:",&(KVI_OPTION_MIRCCOLOR(12)));
	addColorSelector(1,3,1,3,"13:",&(KVI_OPTION_MIRCCOLOR(13)));
	addColorSelector(2,3,2,3,"14:",&(KVI_OPTION_MIRCCOLOR(14)));
	addColorSelector(3,3,3,3,"15:",&(KVI_OPTION_MIRCCOLOR(15)));

	addRowSpacer(0,4,3,4);

	layout()->setRowStretch(4,1);
}
开发者ID:netrunner-debian-kde-extras,项目名称:kvirc,代码行数:27,代码来源:OptionsWidget_message.cpp


示例6: PianoKeySet

void Piano::setInstrument(const Instrument * newInstr)
{
    instr = newInstr;
    delete keyboard;
    keyboard = new PianoKeySet(audio, instr, toggles, this);
    createLayout();
}
开发者ID:planarian,项目名称:relative_keys,代码行数:7,代码来源:piano.cpp


示例7: QWidget

// DkGroupWidget --------------------------------------------------------------------
DkGroupWidget::DkGroupWidget(const QString& title, QWidget* parent) : QWidget(parent) {

	setObjectName("DkGroupWidget");
	mTitle = title;

	createLayout();
}
开发者ID:007durgesh219,项目名称:nomacs,代码行数:8,代码来源:DkPreferenceWidgets.cpp


示例8: Q_ASSERT

//----------------------------------------------------------------------------------------------
EditSerieDialog::EditSerieDialog(SeriesProvider * seriesProvider)
{
    Q_ASSERT(seriesProvider);
    createForm(seriesProvider);
    createLayout();
    createConnection();
}
开发者ID:cdonnat,项目名称:QSeriesHunter,代码行数:8,代码来源:editseriedialog.cpp


示例9: QWidget

ObxTreeView::ObxTreeView(QWidget *parent, QStandardItemModel * model)
    : QWidget(parent)
    , layout_(this)
    , model_(model)
    , items_layout_(0)
    , header_bar_(0, model)
    , selected_(-1)
    , first_visible_(0)
    , items_per_page_(1)
    , all_items_()
    , views_()
    , pressed_item_(0)
    , pressed_point_()
    , hovering_(false)
{
    setAutoFillBackground(true);
    setBackgroundRole(QPalette::Base);

    createLayout();
    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    if (model_)
    {
        setupInternalModel(model_, model_->invisibleRootItem(), -1);
    }
}
开发者ID:yoshi314,项目名称:boox-explorer,代码行数:26,代码来源:tree_view.cpp


示例10: DkNamedWidget

// DkPreferenceTabWidget --------------------------------------------------------------------
DkPreferenceTabWidget::DkPreferenceTabWidget(const QIcon& icon, const QString& name, QWidget* parent) : DkNamedWidget(name, parent) {

	setObjectName("DkPreferenceTab");
	mIcon = icon;

	createLayout();
}
开发者ID:007durgesh219,项目名称:nomacs,代码行数:8,代码来源:DkPreferenceWidgets.cpp


示例11: KviOptionsWidget

OptionsWidget_uparser::OptionsWidget_uparser(QWidget * parent)
    : KviOptionsWidget(parent, "uparser_options_widget")
{
	createLayout();

	KviBoolSelector * b;
	KviBoolSelector * b1;

	addBoolSelector(0, 0, 0, 0, __tr2qs_ctx("Disable parser warnings", "options"), KviOption_boolAvoidParserWarnings);
	addBoolSelector(0, 1, 0, 1, __tr2qs_ctx("Disable broken event handlers", "options"), KviOption_boolDisableBrokenEventHandlers);
	addBoolSelector(0, 2, 0, 2, __tr2qs_ctx("Kill broken timers", "options"), KviOption_boolKillBrokenTimers);
	addBoolSelector(0, 3, 0, 3, __tr2qs_ctx("Send unknown commands as /RAW", "options"), KviOption_boolSendUnknownCommandsAsRaw);

	addSeparator(0, 4, 0, 4);

	addBoolSelector(0, 5, 0, 5, __tr2qs_ctx("Automatically unload unused modules", "options"), KviOption_boolCleanupUnusedModules);
	addBoolSelector(0, 6, 0, 6, __tr2qs_ctx("Ignore module versions (dangerous)", "options"), KviOption_boolIgnoreModuleVersions);

	addSeparator(0, 7, 0, 7);

	b = addBoolSelector(0, 8, 0, 8, __tr2qs_ctx("Relay errors and warnings to debug window", "options"), KviOption_boolScriptErrorsToDebugWindow);
	mergeTip(b, __tr2qs_ctx("This option will show the script errors and warnings "
	                        "also in the special debug window. This makes tracking of scripts that might "
	                        "be running in several windows far easier. The messages in the debug window "
	                        "also contain a deeper call stack which will help you to identify the "
	                        "scripting problems.", "options"));

	b1 = addBoolSelector(0, 9, 0, 9, __tr2qs_ctx("Create debug window without focus", "options"), KviOption_boolShowMinimizedDebugWindow);
	mergeTip(b1, __tr2qs_ctx("This option prevents the debug window "
	                         "from opening and diverting application focus.<br>"
	                         "Enable this if you don't like the debug window "
	                         "popping up while you're typing something in a channel.", "options"));

	addRowSpacer(0, 10, 0, 10);
}
开发者ID:CardinalSins,项目名称:KVIrc,代码行数:35,代码来源:OptionsWidget_uparser.cpp


示例12: QWidget

OSItem::OSItem(const OSItemId& itemId, Type type, QWidget * parent)
               : QWidget(parent),
               m_itemId(itemId),
               m_selectionWidget(NULL),
               m_borderWidget(NULL),
               m_removeButton(NULL),
               m_textLbl(NULL),
               m_imageLeftLbl(NULL),
               m_imageRightLbl(NULL),
               m_mouseDown(false),
               m_selected(false),
               m_draggable(true),
               m_inspectable(false),
               m_acceptsDrops(false),
               m_size(QSize()),
               m_type(type),
               m_borderColor(QColor(Qt::black)),
               m_useLargeIcon(false)
{
  this->setObjectName("OSItem");

  createLayout();

  setAttributes(type);
}
开发者ID:Rahjou,项目名称:OpenStudio,代码行数:25,代码来源:OSItem.cpp


示例13: createQTE

void DisplayFile::create()
{
    text = "";
    createQTE();
    createLabel();
    createLayout();
}
开发者ID:e-vanne,项目名称:SymbolicExecutionProject,代码行数:7,代码来源:displayfile.cpp


示例14: ModelObjectInspectorView

MaterialAirGapInspectorView::MaterialAirGapInspectorView(bool isIP, const openstudio::model::Model& model, QWidget * parent)
  : ModelObjectInspectorView(model, true, parent),
    m_isIP(isIP),
    m_thermalResistance(nullptr)
{
  createLayout();
}
开发者ID:Anto-F,项目名称:OpenStudio,代码行数:7,代码来源:MaterialAirGapInspectorView.cpp


示例15: ModelObjectInspectorView

MaterialAirWallInspectorView::MaterialAirWallInspectorView(bool isIP, const openstudio::model::Model& model, QWidget * parent)
  : ModelObjectInspectorView(model, true, parent),
    m_nameEdit(NULL),
    m_isIP(isIP)
{
  createLayout();
}
开发者ID:CUEBoxer,项目名称:OpenStudio,代码行数:7,代码来源:MaterialAirWallInspectorView.cpp


示例16: KviOptionsWidget

OptionsWidget_dccSendGeneral::OptionsWidget_dccSendGeneral(QWidget * parent)
: KviOptionsWidget(parent)
{
	setObjectName("dccsend_options_widget");
	createLayout();

	KviBoolSelector * b;

	KviTalGroupBox * g = addGroupBox(0,0,0,0,Qt::Horizontal,__tr2qs_ctx("On Incoming File","options"));
	KviBoolSelector * b2 = addBoolSelector(g,__tr2qs_ctx("Automatically accept","options"),KviOption_boolAutoAcceptDccSend);
	KviBoolSelector * b3 = addBoolSelector(g,__tr2qs_ctx("Open transfer window as minimized when auto-accepted","options"),KviOption_boolCreateMinimizedDccSendWhenAutoAccepted,!KVI_OPTION_BOOL(KviOption_boolCreateMinimizedDccSend));
	KviBoolSelector * b4 = addBoolSelector(g,__tr2qs_ctx("Automatically resume when auto-accepted","options"),KviOption_boolAutoResumeDccSendWhenAutoAccepted,KVI_OPTION_BOOL(KviOption_boolAutoAcceptDccSend));

	g = addGroupBox(0,1,0,1,Qt::Horizontal,__tr2qs_ctx("Save Location","options"));
	addDirectorySelector(g,__tr2qs_ctx("Download folder:","options"),KviOption_stringIncomingPath);
	addBoolSelector(g,__tr2qs_ctx("Sort saved files by nicknames (create subfolders)","options"),KviOption_boolSortReceivedByDccFilesByNicks);
	addBoolSelector(g,__tr2qs_ctx("Guess save path from media type","options"),KviOption_boolUseIncomingDccMediaTypeSavePath);


	g = addGroupBox(0,2,0,2,Qt::Horizontal,__tr2qs_ctx("On Download Completion","options"));
	addBoolSelector(g,__tr2qs_ctx("Notify completion in console","options"),KviOption_boolNotifyDccSendSuccessInConsole);
	addBoolSelector(g,__tr2qs_ctx("Notify completion in notifier","options"),KviOption_boolNotifyDccSendSuccessInNotifier);
	b = addBoolSelector(g,__tr2qs_ctx("Automatically clear transfer","options"),KviOption_boolAutoCloseDccSendOnSuccess);
	mergeTip(b,
		__tr2qs_ctx("<center>This option will cause successfully terminated transfers " \
				"to be automatically removed from the transfer window.</center>","options"));


	KviBoolSelector * b1 = addBoolSelector(0,3,0,3,__tr2qs_ctx("Always open transfer window as minimized","options"),KviOption_boolCreateMinimizedDccSend);

	connect(b1,SIGNAL(toggled(bool)),b3,SLOT(setNotEnabled(bool)));
	connect(b2,SIGNAL(toggled(bool)),b4,SLOT(setEnabled(bool)));

	addRowSpacer(0,4,0,4);
}
开发者ID:kartagis,项目名称:KVIrc,代码行数:35,代码来源:OptionsWidget_dcc.cpp


示例17: QWidget

 ModelExplorer::ModelExplorer(QWidget * parent)
   : QWidget(parent),
     mClassViewWidget(NULL),
     mTreeViewWidget(NULL),
     mObjectExplorer(NULL),
     mClassViewUnderMouse(false),
     mTreeViewUnderMouse(false),
     mProgressBarLbl(NULL),
     mSplitter(NULL),
     mDlg(NULL),
     mProgressBar(NULL),
     mQProgressBar(NULL),
     mClassAction(NULL),
     mTreeAction(NULL),
     mStackedWidget(NULL),
     mToolBar(NULL),
     mModel(openstudio::model::Model()),
     mIddFile(mModel.iddFile())
 {
   mModel.order().setDirectOrder(HandleVector());
   createProgressDlg();
   createWidgets();
   createActions();
   createToolBars();
   createLayout();
   connectSignalsAndSlots();
   restoreState();
   setIddFile(mModel);
   expandAllNodes();
 }
开发者ID:CUEBoxer,项目名称:OpenStudio,代码行数:30,代码来源:ModelExplorer.cpp


示例18: setLayout

void PhoneBookCell::resizeEvent(QGraphicsSceneResizeEvent *event)
{
    MListItem::resizeEvent(event);

    if (!layout)
        setLayout(createLayout());
}
开发者ID:arcean,项目名称:libmeegotouch-framework,代码行数:7,代码来源:phonebookcell.cpp


示例19: createAction

Desktop::Desktop()
{
	this->setObjectName("desktop");
	createAction();
	createItem();
	createLayout();
}
开发者ID:fei1700,项目名称:apptest,代码行数:7,代码来源:desktop.cpp


示例20: KviOptionsWidget

OptionsWidget_away::OptionsWidget_away(QWidget * parent)
: KviOptionsWidget(parent)
{
	setObjectName("away_options_widget");

	createLayout();

	m_pEnableAwayMessage = addBoolSelector(0,0,0,0, __tr2qs_ctx("Enable default away message","options"), KviOption_boolUseAwayMessage);
	connect(m_pEnableAwayMessage,SIGNAL(toggled(bool)),this,SLOT(enableAwayMessage(bool)));
	m_pAwayMessage = addStringSelector(0,1,0,1, __tr2qs_ctx("Default away message:","options"), KviOption_stringAwayMessage, KVI_OPTION_BOOL(KviOption_boolUseAwayMessage));

	addBoolSelector(0,2,0,2, __tr2qs_ctx("User input exits away mode","options"), KviOption_boolExitAwayOnInput);

	KviTalGroupBox *g = addGroupBox(0,3,0,3,Qt::Horizontal,__tr2qs_ctx("Away Nickname","options"));
	m_pEnableAwayNick = addBoolSelector(g,__tr2qs_ctx("Change nickname on away","options"),KviOption_boolChangeNickAway);
	connect(m_pEnableAwayNick,SIGNAL(toggled(bool)),this,SLOT(enableCustomAwayText(bool)));

	m_pEnableCustomAwayNick = addBoolSelector(g,__tr2qs_ctx("Use automatic nickname ([5 letters]AWAY)","options"),KviOption_boolAutoGeneratedAwayNick,KVI_OPTION_BOOL(KviOption_boolChangeNickAway));
	connect(m_pEnableAwayNick,SIGNAL(toggled(bool)),m_pEnableCustomAwayNick,SLOT(setEnabled(bool)));
	connect(m_pEnableCustomAwayNick,SIGNAL(toggled(bool)),this,SLOT(enableCustomAwayText(bool)));

	m_pCustomAwayNick = addStringSelector(g,__tr2qs_ctx("Custom nickname (%%nick%% means a current nick):","options"),KviOption_stringCustomAwayNick,KVI_OPTION_BOOL(KviOption_boolChangeNickAway) && !(KVI_OPTION_BOOL(KviOption_boolAutoGeneratedAwayNick)));

	addRowSpacer(0,4,0,4);
}
开发者ID:DINKIN,项目名称:KVIrc,代码行数:25,代码来源:OptionsWidget_away.cpp



注:本文中的createLayout函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ createMarkup函数代码示例发布时间:2022-05-30
下一篇:
C++ createLabel函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap