mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Merge branch 'master' into tweetsip
This commit is contained in:
@@ -81,6 +81,7 @@ CollapsibleControls::init()
|
|||||||
m_summaryLayout = new QHBoxLayout;
|
m_summaryLayout = new QHBoxLayout;
|
||||||
m_summaryWidget->setLayout( m_summaryLayout );
|
m_summaryWidget->setLayout( m_summaryLayout );
|
||||||
m_summaryLayout->setMargin( 0 );
|
m_summaryLayout->setMargin( 0 );
|
||||||
|
m_summaryWidget->setContentsMargins( 3, 0, 0, 0 );
|
||||||
|
|
||||||
m_summary = new QLabel( m_summaryWidget );
|
m_summary = new QLabel( m_summaryWidget );
|
||||||
m_summaryLayout->addWidget( m_summary, 1 );
|
m_summaryLayout->addWidget( m_summary, 1 );
|
||||||
|
@@ -84,7 +84,7 @@ DynamicSetupWidget::DynamicSetupWidget( const Tomahawk::dynplaylist_ptr& playlis
|
|||||||
setLayout( m_layout );
|
setLayout( m_layout );
|
||||||
|
|
||||||
m_fadeAnim = new QPropertyAnimation( this, "opacity" );
|
m_fadeAnim = new QPropertyAnimation( this, "opacity" );
|
||||||
m_fadeAnim->setDuration( 500 );
|
m_fadeAnim->setDuration( 250 );
|
||||||
m_fadeAnim->setStartValue( 0.00 );
|
m_fadeAnim->setStartValue( 0.00 );
|
||||||
m_fadeAnim->setEndValue( .86 );
|
m_fadeAnim->setEndValue( .86 );
|
||||||
|
|
||||||
|
@@ -32,13 +32,12 @@
|
|||||||
#include "ReadOrWriteWidget.h"
|
#include "ReadOrWriteWidget.h"
|
||||||
#include "CollapsibleControls.h"
|
#include "CollapsibleControls.h"
|
||||||
#include "DynamicControlWrapper.h"
|
#include "DynamicControlWrapper.h"
|
||||||
|
#include "playlistmanager.h"
|
||||||
#include "dynamic/DynamicView.h"
|
#include "dynamic/DynamicView.h"
|
||||||
#include <qevent.h>
|
#include <qevent.h>
|
||||||
#include "DynamicSetupWidget.h"
|
#include "DynamicSetupWidget.h"
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
#include "tomahawk/tomahawkapp.h"
|
|
||||||
#include "tomahawkwindow.h"
|
|
||||||
#include "audiocontrols.h"
|
#include "audiocontrols.h"
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
@@ -89,8 +88,8 @@ DynamicWidget::DynamicWidget( const Tomahawk::dynplaylist_ptr& playlist, QWidget
|
|||||||
connect( m_controls, SIGNAL( controlsChanged() ), this, SLOT( controlsChanged() ), Qt::QueuedConnection );
|
connect( m_controls, SIGNAL( controlsChanged() ), this, SLOT( controlsChanged() ), Qt::QueuedConnection );
|
||||||
|
|
||||||
|
|
||||||
connect( TomahawkApp::instance()->mainWindow()->audioControls(), SIGNAL( playPressed() ), this, SLOT( playPressed() ) );
|
connect( PlaylistManager::instance(), SIGNAL( playClicked() ), this, SLOT( playPressed() ) );
|
||||||
connect( TomahawkApp::instance()->mainWindow()->audioControls(), SIGNAL( pausePressed() ), this, SLOT( pausePressed() ) );
|
connect( PlaylistManager::instance(), SIGNAL( pauseClicked() ), this, SLOT( pausePressed() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
DynamicWidget::~DynamicWidget()
|
DynamicWidget::~DynamicWidget()
|
||||||
|
@@ -670,3 +670,13 @@ PlaylistManager::showCurrentTrack()
|
|||||||
/* if ( m_currentView && m_currentProxyModel )
|
/* if ( m_currentView && m_currentProxyModel )
|
||||||
m_currentView->scrollTo( m_currentProxyModel->currentItem(), QAbstractItemView::PositionAtCenter );*/
|
m_currentView->scrollTo( m_currentProxyModel->currentItem(), QAbstractItemView::PositionAtCenter );*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PlaylistManager::onPlayClicked() {
|
||||||
|
emit playClicked();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PlaylistManager::onPauseClicked() {
|
||||||
|
emit pauseClicked();
|
||||||
|
}
|
@@ -69,6 +69,8 @@ signals:
|
|||||||
void statsAvailable( bool b );
|
void statsAvailable( bool b );
|
||||||
void modesAvailable( bool b );
|
void modesAvailable( bool b );
|
||||||
|
|
||||||
|
void playClicked();
|
||||||
|
void pauseClicked();
|
||||||
public slots:
|
public slots:
|
||||||
void setTreeMode();
|
void setTreeMode();
|
||||||
void setTableMode();
|
void setTableMode();
|
||||||
@@ -85,6 +87,11 @@ public slots:
|
|||||||
// called by the playlist creation dbcmds
|
// called by the playlist creation dbcmds
|
||||||
void createPlaylist( const Tomahawk::source_ptr& src, const QVariant& contents );
|
void createPlaylist( const Tomahawk::source_ptr& src, const QVariant& contents );
|
||||||
void createDynamicPlaylist( const Tomahawk::source_ptr& src, const QVariant& contents );
|
void createDynamicPlaylist( const Tomahawk::source_ptr& src, const QVariant& contents );
|
||||||
|
|
||||||
|
// ugh need to set up the connection in tomahawk to libtomahawk
|
||||||
|
void onPlayClicked();
|
||||||
|
void onPauseClicked();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void applyFilter();
|
void applyFilter();
|
||||||
|
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
#include <Carbon/Carbon.h>
|
#include <Carbon/Carbon.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <thirdparty/jdns/qjdns.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <qjdns.h>
|
#include <qjdns.h>
|
||||||
|
@@ -53,7 +53,10 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
|
|||||||
setUnifiedTitleAndToolBarOnMac( true );
|
setUnifiedTitleAndToolBarOnMac( true );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
new PlaylistManager( this );
|
PlaylistManager* pm = new PlaylistManager( this );
|
||||||
|
|
||||||
|
connect( m_audioControls, SIGNAL( playPressed() ), pm, SLOT( onPlayClicked() ) );
|
||||||
|
connect( m_audioControls, SIGNAL( pausePressed() ), pm, SLOT( onPauseClicked() ) );
|
||||||
|
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
|
|
||||||
|
2
thirdparty/jdns/jdns/qjdns.cpp
vendored
2
thirdparty/jdns/jdns/qjdns.cpp
vendored
@@ -50,7 +50,7 @@ QJDns::Record::Record()
|
|||||||
haveKnown = false;
|
haveKnown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QJDns::Record::verify() const
|
bool QJDns::Record::doVerify() const
|
||||||
{
|
{
|
||||||
jdns_rr_t *rr = export_record(*this);
|
jdns_rr_t *rr = export_record(*this);
|
||||||
int ok = jdns_rr_verify(rr);
|
int ok = jdns_rr_verify(rr);
|
||||||
|
2
thirdparty/jdns/jdns/qjdns.h
vendored
2
thirdparty/jdns/jdns/qjdns.h
vendored
@@ -111,7 +111,7 @@ public:
|
|||||||
QByteArray os; // for Hinfo
|
QByteArray os; // for Hinfo
|
||||||
|
|
||||||
Record();
|
Record();
|
||||||
bool verify() const;
|
bool doVerify() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Response
|
class Response
|
||||||
|
Reference in New Issue
Block a user