mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Style fixes and debugging.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>300</width>
|
||||
<height>500</height>
|
||||
<height>488</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@@ -19,7 +19,7 @@
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>500</height>
|
||||
<height>488</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -340,8 +340,8 @@
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>17</width>
|
||||
<height>15</height>
|
||||
<width>20</width>
|
||||
<height>8</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
|
@@ -904,6 +904,7 @@ PlayableModel::onDataChanged()
|
||||
void
|
||||
PlayableModel::startLoading()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
Q_D( PlayableModel );
|
||||
d->loading = true;
|
||||
emit loadingStarted();
|
||||
@@ -913,6 +914,7 @@ PlayableModel::startLoading()
|
||||
void
|
||||
PlayableModel::finishLoading()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
Q_D( PlayableModel );
|
||||
d->loading = false;
|
||||
emit loadingFinished();
|
||||
|
@@ -83,6 +83,7 @@ AccountListWidget::AccountListWidget( AccountModelFactoryProxy* model, QWidget*
|
||||
updateToggleOnlineStateButton();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::updateEntries( const QModelIndex& topLeft, const QModelIndex& bottomRight )
|
||||
{
|
||||
@@ -105,6 +106,7 @@ AccountListWidget::updateEntries( const QModelIndex& topLeft, const QModelIndex&
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::updateEntry( const QPersistentModelIndex& idx )
|
||||
{
|
||||
@@ -114,6 +116,7 @@ AccountListWidget::updateEntry( const QPersistentModelIndex& idx )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::loadAllEntries()
|
||||
{
|
||||
@@ -132,6 +135,7 @@ AccountListWidget::loadAllEntries()
|
||||
insertEntries( QModelIndex(), 0, rc - 1 );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::insertEntries( const QModelIndex& parent, int start, int end )
|
||||
{
|
||||
@@ -160,6 +164,7 @@ AccountListWidget::insertEntries( const QModelIndex& parent, int start, int end
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::removeEntries( const QModelIndex& parent, int start, int end )
|
||||
{
|
||||
@@ -191,9 +196,11 @@ AccountListWidget::removeEntries( const QModelIndex& parent, int start, int end
|
||||
qobject_cast< QWidget* >( QWidget::parent() )->adjustSize();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::toggleOnlineStateForAll()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
bool newState = !m_toggleOnlineButtonState;
|
||||
foreach ( QList< AccountWidget* > awgts, m_entries )
|
||||
{
|
||||
@@ -204,6 +211,7 @@ AccountListWidget::toggleOnlineStateForAll()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountListWidget::updateToggleOnlineStateButton()
|
||||
{
|
||||
@@ -223,6 +231,7 @@ AccountListWidget::updateToggleOnlineStateButton()
|
||||
|
||||
if ( newState != m_toggleOnlineButtonState )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
m_toggleOnlineButtonState = newState;
|
||||
if ( newState )
|
||||
Tomahawk::Accounts::AccountManager::instance()->connectAll();
|
||||
|
@@ -27,6 +27,7 @@
|
||||
#include "utils/TomahawkStyle.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/AnimatedSpinner.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "widgets/ElidedLabel.h"
|
||||
|
||||
#include "jobview/JobStatusView.h"
|
||||
@@ -187,8 +188,8 @@ AccountWidget::update( const QPersistentModelIndex& idx, int accountIdx )
|
||||
if ( account->enabled() )
|
||||
m_statusToggle->setChecked( true );
|
||||
else
|
||||
qDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Connected but Disabled!";
|
||||
tDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Connected but Disabled!";
|
||||
m_spinner->fadeOut();
|
||||
m_statusToggle->setBackChecked( true );
|
||||
setInviteWidgetsEnabled( true );
|
||||
@@ -198,8 +199,8 @@ AccountWidget::update( const QPersistentModelIndex& idx, int accountIdx )
|
||||
case Tomahawk::Accounts::Account::Connecting:
|
||||
{
|
||||
if ( !account->enabled() )
|
||||
qDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Connecting but Disabled!";
|
||||
tDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Connecting but Disabled!";
|
||||
m_spinner->fadeIn();
|
||||
m_statusToggle->setBackChecked( false );
|
||||
setInviteWidgetsEnabled( false );
|
||||
@@ -211,8 +212,8 @@ AccountWidget::update( const QPersistentModelIndex& idx, int accountIdx )
|
||||
if ( !account->enabled() )
|
||||
m_statusToggle->setChecked( false );
|
||||
else
|
||||
qDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Disconnected but Enabled!";
|
||||
tDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Disconnected but Enabled!";
|
||||
m_spinner->fadeOut();
|
||||
m_statusToggle->setBackChecked( false );
|
||||
setInviteWidgetsEnabled( false );
|
||||
@@ -222,8 +223,8 @@ AccountWidget::update( const QPersistentModelIndex& idx, int accountIdx )
|
||||
case Tomahawk::Accounts::Account::Disconnecting:
|
||||
{
|
||||
if ( account->enabled() )
|
||||
qDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Disconnecting but Enabled!";
|
||||
tDebug() << "AccountWidget warning:" << account->accountFriendlyName()
|
||||
<< "is Disconnecting but Enabled!";
|
||||
m_spinner->fadeIn();
|
||||
m_statusToggle->setBackChecked( true );
|
||||
setInviteWidgetsEnabled( false );
|
||||
|
Reference in New Issue
Block a user