Changeset 03ff157


Ignore:
Timestamp:
01/14/10 14:54:09 (12 years ago)
Author:
fortefr <fortefr@…>
Branches:
master, qt5
Children:
8860ff4
Parents:
f3f6162
Message:

Map button/compass icon added

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.ui

    rf3f6162 r03ff157  
    1919     <widget class="QTabWidget" name="tabWidget">
    2020      <property name="currentIndex">
    21        <number>4</number>
     21       <number>0</number>
    2222      </property>
    2323      <widget class="QWidget" name="dayViewTab">
  • src/icons.qrc

    rf3f6162 r03ff157  
    88    <file>icons/collapse.png</file>
    99    <file>icons/fosdem.png</file>
     10    <file>icons/compass.png</file>
    1011</qresource>
    1112</RCC>
  • src/mvc/delegate.cpp

    rf3f6162 r03ff157  
    8686        painter->drawImage(mControls[FavouriteControl]->drawPoint(option.rect),*mControls[FavouriteControl]->image());
    8787        painter->drawImage(mControls[AlarmControl]->drawPoint(option.rect),*mControls[AlarmControl]->image());
     88        painter->drawImage(mControls[MapControl]->drawPoint(option.rect),*mControls[MapControl]->image());
    8889    }
    8990    else // doesn't have parent - time-groups' elements (top items)
     
    209210    control->setDrawPoint(QPoint(-mControls[FavouriteControl]->image()->width()-control->image()->width()-2*SPACER,SPACER));
    210211    mControls.insert(AlarmControl,control);
     212
     213    // MAP ICON
     214    control = new Control(MapControl,QString(":icons/compass.png"));
     215    control->setDrawPoint(QPoint(-mControls[AlarmControl]->image()->width()-control->image()->width()
     216                                 -mControls[FavouriteControl]->image()->width()-3*SPACER,SPACER));
     217    mControls.insert(MapControl,control);
    211218}
    212219
  • src/mvc/delegate.h

    rf3f6162 r03ff157  
    1616            ControlNone = 0,
    1717            FavouriteControl,
    18             AlarmControl
     18            AlarmControl,
     19            MapControl
    1920        };
    2021
  • src/mvc/treeview.cpp

    rf3f6162 r03ff157  
    4343            }
    4444            break;
     45        case Delegate::MapControl:
     46            {
     47                // handle Alarm Control clicked
     48                qDebug() << "MAP CLICKED: " << qVariantValue<QString>(aIndex.data());
     49            }
     50        break;
    4551        case Delegate::ControlNone:
    4652        default:
Note: See TracChangeset for help on using the changeset viewer.