本文整理汇总了C++中LayoutUnit::toPair方法的典型用法代码示例。如果您正苦于以下问题:C++ LayoutUnit::toPair方法的具体用法?C++ LayoutUnit::toPair怎么用?C++ LayoutUnit::toPair使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LayoutUnit
的用法示例。
在下文中一共展示了LayoutUnit::toPair方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: latinChanged
void LayoutConfig::latinChanged()
{
QListViewItem *selLayout = widget->listLayoutsDst->selectedItem();
if(!selLayout)
{
widget->chkLatin->setChecked(false);
widget->chkLatin->setEnabled(false);
return;
}
QString include;
if(widget->chkLatin->isChecked())
include = "us";
else
include = "";
selLayout->setText(LAYOUT_COLUMN_INCLUDE, include);
LayoutUnit layoutUnitKey = getLayoutUnitKey(selLayout);
kdDebug() << "layout " << layoutUnitKey.toPair() << ", inc: " << include << endl;
}
示例2: setCurrentLayout
void LayoutMap::setCurrentLayout(const LayoutUnit& layoutUnit) {
LayoutQueue& layoutQueue = getCurrentLayoutQueue(m_currentWinId);
kdDebug() << "map: Storing layout: " << layoutUnit.toPair()
<< " group: " << layoutUnit.defaultGroup << " for " << m_currentWinId << endl;
int queueSize = (int)layoutQueue.count();
for(int ii=0; ii<queueSize; ii++) {
if( layoutQueue.head()->layoutUnit == layoutUnit )
return; // if present return when it's in head
LayoutState* layoutState = layoutQueue.dequeue();
if( ii < queueSize - 1 ) {
layoutQueue.enqueue(layoutState);
}
else {
delete layoutState;
layoutQueue.enqueue(new LayoutState(layoutUnit));
}
}
for(int ii=0; ii<queueSize - 1; ii++) {
LayoutState* layoutState = layoutQueue.dequeue();
layoutQueue.enqueue(layoutState);
}
}
示例3: setCurrentLayout
void KxkbLabelController::setCurrentLayout(const LayoutUnit &layoutUnit)
{
setToolTip(m_descriptionMap[layoutUnit.toPair()]);
setPixmap(LayoutIcon::getInstance().findPixmap(layoutUnit.layout, m_showFlag, layoutUnit.displayName));
}