本文整理汇总了C++中QSimCommand::setMenuItems方法的典型用法代码示例。如果您正苦于以下问题:C++ QSimCommand::setMenuItems方法的具体用法?C++ QSimCommand::setMenuItems怎么用?C++ QSimCommand::setMenuItems使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QSimCommand
的用法示例。
在下文中一共展示了QSimCommand::setMenuItems方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sendBrowserMenu
void DemoSimApplication::sendBrowserMenu()
{
QSimCommand cmd;
QSimMenuItem item;
QList<QSimMenuItem> items;
cmd.setType( QSimCommand::SelectItem );
cmd.setTitle( "Web Browser" );
item.setIdentifier( 1 );
item.setLabel( "Qt Extended" );
items += item;
item.setIdentifier( 2 );
item.setLabel( "Google (normal)" );
items += item;
item.setIdentifier( 3 );
item.setLabel( "Google (if browser not in use)" );
items += item;
item.setIdentifier( 4 );
item.setLabel( "Google (clear history)" );
items += item;
item.setIdentifier( 5 );
item.setLabel( "Default Home Page" );
items += item;
cmd.setMenuItems( items );
command( cmd, this, SLOT(browserMenu(QSimTerminalResponse)) );
}
示例2: sendIconSEMenu
void DemoSimApplication::sendIconSEMenu()
{
QSimCommand cmd;
QSimMenuItem item;
QList<QSimMenuItem> items;
cmd.setType( QSimCommand::SelectItem );
cmd.setTitle( "Icons SE" );
item.setIdentifier( 1 );
item.setLabel( "Basic Icon" );
item.setIconId( 1 );
item.setIconSelfExplanatory( true );
items += item;
item.setIdentifier( 2 );
item.setLabel( "Color Icon" );
item.setIconId( 2 );
item.setIconSelfExplanatory( true );
items += item;
item.setIdentifier( 3 );
item.setLabel( "Bad Icon" );
item.setIconId( 70 );
item.setIconSelfExplanatory( true );
items += item;
cmd.setMenuItems( items );
command( cmd, this, SLOT(iconSEMenu(QSimTerminalResponse)) );
}
示例3: sendSportsMenu
void DemoSimApplication::sendSportsMenu()
{
QSimCommand cmd;
QSimMenuItem item;
QList<QSimMenuItem> items;
cmd.setType( QSimCommand::SelectItem );
cmd.setTitle( "Sports" );
item.setIdentifier( SportsMenu_Chess );
item.setLabel( "Chess" );
items += item;
item.setIdentifier( SportsMenu_Painting );
item.setLabel( "Finger Painting" );
items += item;
item.setIdentifier( SportsMenu_Snakes );
item.setLabel( "Snakes and Ladders" );
items += item;
item.setIdentifier( SportsMenu_Main );
item.setLabel( "Return to main menu" );
items += item;
cmd.setMenuItems( items );
command( cmd, this, SLOT(sportsMenu(QSimTerminalResponse)) );
}
示例4: sendToneMenu
void DemoSimApplication::sendToneMenu()
{
QSimCommand cmd;
QSimMenuItem item;
QList<QSimMenuItem> items;
cmd.setType( QSimCommand::SelectItem );
cmd.setTitle( "Tones" );
item.setIdentifier( (uint)QSimCommand::ToneDial );
item.setLabel( "Dial" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneBusy );
item.setLabel( "Busy" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneCongestion );
item.setLabel( "Congestion" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneRadioAck );
item.setLabel( "Radio Ack" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneDropped );
item.setLabel( "Dropped" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneError );
item.setLabel( "Error" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneCallWaiting );
item.setLabel( "Call Waiting" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneGeneralBeep );
item.setLabel( "General Beep" );
items += item;
item.setIdentifier( (uint)QSimCommand::TonePositiveBeep );
item.setLabel( "Positive Beep" );
items += item;
item.setIdentifier( (uint)QSimCommand::ToneNegativeBeep );
item.setLabel( "Negative Beep" );
items += item;
cmd.setMenuItems( items );
command( cmd, this, SLOT(toneMenu(QSimTerminalResponse)) );
}
示例5: mainMenu
void DemoSimApplication::mainMenu()
{
QSimCommand cmd;
QSimMenuItem item;
QList<QSimMenuItem> items;
cmd.setType( QSimCommand::SetupMenu );
item.setIdentifier( MainMenu_News );
item.setLabel( "News" );
items += item;
item.setIdentifier( MainMenu_Sports );
item.setLabel( "Sports" );
items += item;
item.setIdentifier( MainMenu_Time );
item.setLabel( "Time" );
items += item;
item.setIdentifier( MainMenu_SticksGame );
item.setLabel( "Sticks Game" );
items += item;
item.setIdentifier( MainMenu_Tones );
item.setLabel( "Tones" );
items += item;
item.setIdentifier( MainMenu_Icons );
item.setLabel( "Icons (not self-explanatory)" );
items += item;
item.setIdentifier( MainMenu_IconsSE );
item.setLabel( "Icons (self-explanatory)" );
items += item;
item.setIdentifier( MainMenu_Finance );
item.setLabel( "Finance" );
items += item;
item.setIdentifier( MainMenu_Browser );
item.setLabel( "Web Browser" );
items += item;
cmd.setMenuItems( items );
command( cmd, 0, 0 );
}