<source>CURVE_COLOR_LAB</source>
<translation>Color:</translation>
</message>
+ <message>
+ <source>CURVE_PREVIEW_LAB</source>
+ <translation>Preview:</translation>
+ </message>
<message>
<source>DIAMOND_MARKER_LBL</source>
<translation>Diamond</translation>
setClickable( a->isChecked() );
QtxTreeView* view = qobject_cast<QtxTreeView*>( parent() );
if ( view ) {
+ view->emitSortingEnabled( a->isChecked() );
if ( a->isChecked() ) {
connect( this, SIGNAL( sectionClicked( int ) ), view, SLOT( onHeaderClicked( int ) ) );
view->sortByColumn( sortIndicatorSection(), sortIndicatorOrder() );
setOpened( child, levels-1, open );
}
}
+
+/*!
+ \brief Emit sortingEnabled(bool) signal.
+ \param enabled "enable sorting" flag state
+*/
+void QtxTreeView::emitSortingEnabled( bool enabled )
+{
+ emit( sortingEnabled( enabled ) );
+}
protected:
void setOpened( const QModelIndex&, const int, bool );
+
+signals:
+ void sortingEnabled( bool );
+
+private:
+ void emitSortingEnabled( bool );
+
+ friend class QtxTreeView::Header;
};
#ifdef WIN32