@@ -624,22 +624,6 @@ void QgsStyleV2ManagerDialog::populateGroups()
624
624
setBold ( allSymbols );
625
625
model->appendRow ( allSymbols );
626
626
627
- QStandardItem *projectSymbols = new QStandardItem ( " Project Symbols" );
628
- projectSymbols->setData ( " project" );
629
- projectSymbols->setEditable ( false );
630
- setBold ( projectSymbols );
631
- model->appendRow ( projectSymbols );
632
-
633
- /* TODO
634
- *
635
- QStandardItem *recent = new QStandardItem( "Recently Used" );
636
- recent->setData( "recent" );
637
- recent->setEditable( false );
638
- setBold( recent );
639
- model->appendRow( recent );
640
- *
641
- */
642
-
643
627
QStandardItem *group = new QStandardItem ( " " ); // require empty name to get first order groups
644
628
group->setData ( " groups" );
645
629
group->setEditable ( false );
@@ -711,19 +695,7 @@ void QgsStyleV2ManagerDialog::groupChanged( const QModelIndex& index )
711
695
}
712
696
symbolNames = currentItemType () < 3 ? mStyle ->symbolNames () : mStyle ->colorRampNames ();
713
697
}
714
- else if ( category == " recent" )
715
- {
716
- // TODO add session symbols
717
- enableGroupInputs ( false );
718
- symbolNames = QStringList ();
719
- }
720
- else if ( category == " project" )
721
- {
722
- // TODO add project symbols
723
- enableGroupInputs ( false );
724
- symbolNames = QStringList ();
725
- }
726
- else
698
+ else
727
699
{
728
700
// determine groups and tags
729
701
if ( index.parent ().data ( Qt::UserRole + 1 ) == " smartgroups" )
@@ -769,8 +741,7 @@ void QgsStyleV2ManagerDialog::addGroup()
769
741
770
742
// Violation 1: Creating sub-groups of system defined groups
771
743
QString parentData = parentIndex.data ( Qt::UserRole + 1 ).toString ();
772
- if ( parentData == " all" || parentData == " recent" || parentData == " project" ||
773
- ( parentIndex.data () == " Ungrouped" && parentData == " 0" ) )
744
+ if ( parentData == " all" || ( parentIndex.data () == " Ungrouped" && parentData == " 0" ) )
774
745
{
775
746
int err = QMessageBox::critical ( this , tr ( " Invalid Selection" ),
776
747
tr ( " The parent group you have selected is not user editable.\n "
@@ -832,7 +803,7 @@ void QgsStyleV2ManagerDialog::removeGroup()
832
803
833
804
// Violation: removing system groups
834
805
QString data = index.data ( Qt::UserRole + 1 ).toString ();
835
- if ( data == " all" || data == " recent " || data == " project " || data == " groups" || data == " smartgroups" || index.data () == " Ungrouped" )
806
+ if ( data == " all" || data == " groups" || data == " smartgroups" || index.data () == " Ungrouped" )
836
807
{
837
808
int err = QMessageBox::critical ( this , tr ( " Invalid slection" ),
838
809
tr ( " Cannot delete system defined categories.\n "
0 commit comments