Skip to content
Permalink
Browse files

custom widget lib: include resources to show icons in designer

  • Loading branch information
3nids committed Aug 20, 2014
1 parent a05c4c8 commit 1cba39da6fc64b3bb89d0f2982bfcdfb5c07394d
Showing with 6 additions and 2 deletions.
  1. +4 −1 src/customwidgets/CMakeLists.txt
  2. +2 −1 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -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})
@@ -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();
}

0 comments on commit 1cba39d

Please sign in to comment.
You can’t perform that action at this time.