[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/traverso/widgets InfoWidgets.cpp
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/traverso/widgets InfoWidgets.cpp |
Date: |
Mon, 07 May 2007 10:43:43 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/05/07 10:43:43
Modified files:
src/traverso/widgets: InfoWidgets.cpp
Log message:
* vertical align playhead pixmap
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/widgets/InfoWidgets.cpp?cvsroot=traverso&r1=1.23&r2=1.24
Patches:
Index: InfoWidgets.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/widgets/InfoWidgets.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- InfoWidgets.cpp 6 May 2007 00:02:38 -0000 1.23
+++ InfoWidgets.cpp 7 May 2007 10:43:43 -0000 1.24
@@ -49,7 +49,7 @@
// in case we run with memory leak detection enabled!
#include "Debugger.h"
-static const int INFOBAR_HEIGH_HOR_ORIENTATION = 25;
+static const int SONG_TOOLBAR_HEIGHT = 24;
SystemResources::SystemResources(QWidget * parent)
@@ -129,7 +129,7 @@
QSize SystemResources::sizeHint() const
{
- return QSize(250, INFOBAR_HEIGH_HOR_ORIENTATION);
+ return QSize(250, SONG_TOOLBAR_HEIGHT);
}
@@ -193,7 +193,7 @@
QSize DriverInfo::sizeHint() const
{
- return QSize(150, INFOBAR_HEIGH_HOR_ORIENTATION);
+ return QSize(150, SONG_TOOLBAR_HEIGHT);
}
void DriverInfo::show_driver_config_widget( )
@@ -343,7 +343,7 @@
QSize HDDSpaceInfo::sizeHint() const
{
- return QSize(70, INFOBAR_HEIGH_HOR_ORIENTATION);
+ return QSize(70, SONG_TOOLBAR_HEIGHT);
}
@@ -493,7 +493,7 @@
painter.setPen(fontcolor);
painter.drawPixmap(0, 0, m_background);
- painter.drawPixmap(8, 6, m_playpixmap);
+ painter.drawPixmap(8, (height() - m_playpixmap.height()) / 2,
m_playpixmap);
painter.drawText(QRect(12, 4, width() - 6, height() - 6),
Qt::AlignCenter, currentTime);
}
@@ -512,7 +512,7 @@
QSize PlayHeadInfo::sizeHint() const
{
- return QSize(120, INFOBAR_HEIGH_HOR_ORIENTATION);
+ return QSize(120, SONG_TOOLBAR_HEIGHT);
}
void PlayHeadInfo::resizeEvent(QResizeEvent * e)
@@ -661,7 +661,7 @@
lay->setMargin(0);
setFrameStyle(QFrame::NoFrame);
- setMaximumHeight(INFOBAR_HEIGH_HOR_ORIENTATION);
+ setMaximumHeight(SONG_TOOLBAR_HEIGHT);
connect(m_snapAct, SIGNAL(triggered(bool)), this,
SLOT(snap_state_changed(bool)));
connect(m_followAct, SIGNAL(triggered(bool)), this,
SLOT(follow_state_changed(bool)));
@@ -761,7 +761,7 @@
QSize SongInfo::sizeHint() const
{
- return QSize(400, INFOBAR_HEIGH_HOR_ORIENTATION);
+ return QSize(400, SONG_TOOLBAR_HEIGHT);
}