Skip to content

Commit

Permalink
custom widget lib: include resources to show icons in designer
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 20, 2014
1 parent a05c4c8 commit 1cba39d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/customwidgets/CMakeLists.txt
Expand Up @@ -77,7 +77,10 @@ INCLUDE_DIRECTORIES(
#############################################################
# qgis_customwidgets library

ADD_LIBRARY(qgis_customwidgets SHARED ${QGIS_CUSTOMWIDGETS_SRCS} ${QGIS_CUSTOMWIDGETS_MOC_SRCS} ${QGIS_CUSTOMWIDGETS_HDRS})
SET(IMAGE_RCCS ../../images/images.qrc)
QT4_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})

ADD_LIBRARY(qgis_customwidgets SHARED ${QGIS_CUSTOMWIDGETS_SRCS} ${QGIS_CUSTOMWIDGETS_MOC_SRCS} ${QGIS_CUSTOMWIDGETS_HDRS} ${IMAGE_RCC_SRCS})

# TODO: apple
INSTALL(FILES ${QGIS_CUSTOMWIDGETS_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})
Expand Down
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -108,9 +108,10 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget* parent )
mAttributeEditorFrame->setLayout( mAttributeEditorLayout );
mTopLayout->addWidget( mAttributeEditorFrame );

// default mode is combobox, non geometric relation and no embed form
// default mode is combobox, no geometric relation and no embed form
mLineEdit->hide();
mMapIdentificationButton->hide();
mHighlightFeatureButton->hide();
mAttributeEditorFrame->hide();
}

Expand Down

0 comments on commit 1cba39d

Please sign in to comment.