コード例 #1
0
ファイル: colortool.cpp プロジェクト: jay602/QmlDesignerPlus
    bool isVisible(const SelectionContext &selectionContext) const
    {
        if (selectionContext.singleNodeIsSelected())
            return selectionContext.currentSingleSelectedNode().metaInfo().hasProperty("color");

        return false;
    }
コード例 #2
0
bool AddTabDesignerAction::isVisible(const SelectionContext &selectionContext) const
{
    if (selectionContext.singleNodeIsSelected()) {
        ModelNode selectedModelNode = selectionContext.currentSingleSelectedNode();
        return isTabView(selectedModelNode) || isTabAndParentIsTabView(selectedModelNode);
    }

    return false;
}
コード例 #3
0
ファイル: sourcetool.cpp プロジェクト: KeeganRen/qt-creator
 bool isVisible(const SelectionContext &selectionContext) const
 {
     if (selectionContext.singleNodeIsSelected())
         return modelNodeHasUrlSource(selectionContext.currentSingleSelectedNode());
     return false;
 }