summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/rohfeedback.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/backend/rohfeedback.cpp b/library/backend/rohfeedback.cpp
index fa2a636..32e77c8 100644
--- a/library/backend/rohfeedback.cpp
+++ b/library/backend/rohfeedback.cpp
@@ -33,52 +33,52 @@ namespace Opie {
namespace Internal {
/*
RightOnHold feedback
*/
QPixmap * RoHFeedback::Imgs[NOOFICONS] = { 0, 0, 0, 0, 0 };
QBitmap * RoHFeedback::Masks[NOOFICONS];
int RoHFeedback::IconWidth;
int RoHFeedback::IconHeight;
RoHFeedback::RoHFeedback() :
QLabel( 0, 0, Qt::WType_Popup ), Timer() {
Receiver = 0l;
connect( &Timer, SIGNAL( timeout() ), this, SLOT( iconShow() ) );
if( Imgs[0] == 0 ) {
QString S;
for( int i = 0; i < NOOFICONS ; i ++ ) {
Imgs[i] = new QPixmap( Resource::loadPixmap(
- "RoH/star/"+ QString::number(i+1) + ".png" ));
+ "RoH/star/"+ QString::number(i+1) ));
Masks[i] = new QBitmap();
(*Masks[i]) = Resource::loadPixmap(
- "RoH/star/"+QString::number(i+1) + "-mask.png" );
+ "RoH/star/"+QString::number(i+1) + "-mask" );
}
}
IconWidth = Imgs[0]->size().width();
IconHeight = Imgs[0]->size().height();
resize( IconWidth, IconHeight );
}
int RoHFeedback::delay( void ) {
return DELAY+SPEED+50;
}
RoHFeedback::~RoHFeedback() {
for ( int i = 0; i < NOOFICONS; ++i ) {
delete Imgs [i];
delete Masks[i];
}
}
void RoHFeedback::init( const QPoint & P, QWidget* wid ) {
if( ! IconWidth )
return;