added color action to left sidebar

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@444 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-03-31 12:17:15 +00:00
parent bbd59db20f
commit 0b0825853e
2 changed files with 12 additions and 8 deletions

View File

@ -123,6 +123,8 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
connect(ui.actionInvite_Friend, SIGNAL(triggered() ), this , SLOT( inviteFriend() ) ); connect(ui.actionInvite_Friend, SIGNAL(triggered() ), this , SLOT( inviteFriend() ) );
connect(ui.actionAdd_Share, SIGNAL(triggered() ), this , SLOT( addSharedDirectory() ) ); connect(ui.actionAdd_Share, SIGNAL(triggered() ), this , SLOT( addSharedDirectory() ) );
connect(ui.actionOptions, SIGNAL(triggered()), this, SLOT( showPreferencesWindow()) ); connect(ui.actionOptions, SIGNAL(triggered()), this, SLOT( showPreferencesWindow()) );
connect(ui.actionColor, SIGNAL(triggered()), this, SLOT( setStyle()) );
/** Games ToolBox*/ /** Games ToolBox*/
//connect(ui.qbackgammonButton, SIGNAL(clicked( bool )), this, SLOT( startgammon()) ); //connect(ui.qbackgammonButton, SIGNAL(clicked( bool )), this, SLOT( startgammon()) );
@ -669,12 +671,5 @@ void MainWindow::setStyle()
} }
/*void MainWindow::toggleViewAction ()
{
ui.toolBarservice->toggleViewAction();
//ui.toolBarservice->show();
}*/

View File

@ -1075,12 +1075,13 @@
<enum>LeftToolBarArea</enum> <enum>LeftToolBarArea</enum>
</attribute> </attribute>
<attribute name="toolBarBreak" > <attribute name="toolBarBreak" >
<bool>true</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="actionAdd_Friend" /> <addaction name="actionAdd_Friend" />
<addaction name="actionInvite_Friend" /> <addaction name="actionInvite_Friend" />
<addaction name="actionAdd_Share" /> <addaction name="actionAdd_Share" />
<addaction name="actionOptions" /> <addaction name="actionOptions" />
<addaction name="actionColor" />
<addaction name="separator" /> <addaction name="separator" />
<addaction name="actionQuit" /> <addaction name="actionQuit" />
</widget> </widget>
@ -1124,6 +1125,14 @@
<string>Quit</string> <string>Quit</string>
</property> </property>
</action> </action>
<action name="actionColor" >
<property name="icon" >
<iconset resource="images.qrc" >:/images/highlight.png</iconset>
</property>
<property name="text" >
<string>Color</string>
</property>
</action>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>