mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
* Added Go online/offline to Network menu.
This commit is contained in:
parent
426a958fd2
commit
83dca3a8ac
@ -60,8 +60,6 @@ TopBar::TopBar( QWidget* parent )
|
||||
connect( ui->radioDetailed, SIGNAL( clicked() ), SIGNAL( artistMode() ) );
|
||||
connect( ui->radioCloud, SIGNAL( clicked() ), SIGNAL( albumMode() ) );
|
||||
|
||||
// ui->widgetRadio->hide(); // FIXME
|
||||
|
||||
setNumSources( 0 );
|
||||
setNumTracks( 0 );
|
||||
setNumArtists( 0 );
|
||||
|
@ -175,6 +175,7 @@ TomahawkWindow::setupSignals()
|
||||
|
||||
// <Menu Items>
|
||||
connect( ui->actionPreferences, SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
||||
connect( ui->actionToggleConnect, SIGNAL( triggered() ), APP->sipHandler(), SLOT( toggleConnect() ) );
|
||||
connect( ui->actionAddPeerManually, SIGNAL( triggered() ), SLOT( addPeerManually() ) );
|
||||
connect( ui->actionAddFriendManually, SIGNAL( triggered() ), SLOT( addFriendManually() ) );
|
||||
connect( ui->actionRescanCollection, SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
||||
@ -184,7 +185,6 @@ TomahawkWindow::setupSignals()
|
||||
connect( ui->actionCreate_New_Station, SIGNAL( triggered() ), SLOT( createStation() ));
|
||||
connect( ui->actionAboutTomahawk, SIGNAL( triggered() ), SLOT( showAboutTomahawk() ) );
|
||||
connect( ui->actionExit, SIGNAL( triggered() ), APP, SLOT( quit() ) );
|
||||
// connect( m_statusButton, SIGNAL( clicked() ), APP->sipHandler(), SLOT( toggleConnect() ) );
|
||||
|
||||
// <SipHandler>
|
||||
connect( APP->sipHandler(), SIGNAL( connected() ), SLOT( onSipConnected() ) );
|
||||
@ -383,14 +383,14 @@ TomahawkWindow::onPlaybackLoading( const Tomahawk::result_ptr& result )
|
||||
void
|
||||
TomahawkWindow::onSipConnected()
|
||||
{
|
||||
// m_statusButton->setText( tr( "Online" ) );
|
||||
ui->actionToggleConnect->setText( tr( "Go &offline" ) );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkWindow::onSipDisconnected()
|
||||
{
|
||||
// m_statusButton->setText( tr( "Offline" ) );
|
||||
ui->actionToggleConnect->setText( tr( "Go &online" ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -66,6 +66,8 @@
|
||||
<property name="title">
|
||||
<string>&Network</string>
|
||||
</property>
|
||||
<addaction name="actionToggleConnect"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAddPeerManually"/>
|
||||
<addaction name="actionAddFriendManually"/>
|
||||
</widget>
|
||||
@ -93,6 +95,11 @@
|
||||
<enum>QAction::QuitRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToggleConnect">
|
||||
<property name="text">
|
||||
<string>Go &online</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAddPeerManually">
|
||||
<property name="text">
|
||||
<string>Add &Peer Manually...</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user