tracktooltip.h

来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C头文件 代码 · 共 65 行

H
65
字号
/*  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation; either version 2 of the License, or  (at your option) any later version.*//*  tracktooltip.h  -  Provides an interface to a plain QWidget, which is independent of KDE (bypassed to X11)  begin:     Tue 10 Feb 2004  copyright: (C) 2004 by Christian Muehlhaeuser  email:     chris@chris.de*/#ifndef TRACKTOOLTIP_H#define TRACKTOOLTIP_H#include <qobject.h>#include <qptrlist.h>#include <metabundle.h>#include "tooltip.h"class QWidget;class TrackToolTip: public QObject, public Amarok::ToolTipClient{    Q_OBJECT    public:    TrackToolTip();    static TrackToolTip* instance();    void addToWidget( QWidget *widget );    void removeFromWidget( QWidget *widget );    void setTrack( const MetaBundle &tags, bool force = false );    void setPos( int pos );    void clear();    public:    virtual QPair<QString, QRect> toolTipText( QWidget*, const QPoint& ) const;    private slots:    void slotCoverChanged( const QString &artist, const QString &album );    void slotImageChanged( const QString &remoteURL );    void slotUpdate( const QString &url = QString::null );    void slotMoodbarEvent( void );    private:    QString tooltip() const;    void updateWidgets();    static TrackToolTip *s_instance;    QPtrList<QWidget> m_widgets;    MetaBundle m_tags;    int        m_pos;    QString    m_cover;    QString    m_tooltip;    bool       m_haspos;    QString    m_moodbarURL;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?