Skip to content

Commit

Permalink
Some cosmetic code changes..
Browse files Browse the repository at this point in the history
  • Loading branch information
mauser committed Jul 15, 2018
1 parent f611db6 commit dcd3690
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
7 changes: 0 additions & 7 deletions src/gui/src/AudioEngineInfoForm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ AudioEngineInfoForm::AudioEngineInfoForm(QWidget* parent)
setWindowTitle( trUtf8( "Audio Engine Info" ) );

updateInfo();
//currentPatternLbl->setText("NULL pattern");

timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(updateInfo()));
Expand All @@ -74,8 +73,6 @@ AudioEngineInfoForm::~AudioEngineInfoForm()
}




/**
* show event
*/
Expand All @@ -86,8 +83,6 @@ void AudioEngineInfoForm::showEvent ( QShowEvent* )
}




/**
* hide event
*/
Expand All @@ -97,8 +92,6 @@ void AudioEngineInfoForm::hideEvent ( QHideEvent* )
}




void AudioEngineInfoForm::updateInfo()
{
Hydrogen *pEngine = Hydrogen::get_instance();
Expand Down
2 changes: 0 additions & 2 deletions src/gui/src/SplashScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "SplashScreen.h"

#include <QPainter>
#include <QLabel>
#include <QApplication>
#include <QDesktopWidget>

Expand Down Expand Up @@ -58,7 +57,6 @@ SplashScreen::SplashScreen()

setPixmap( *m_pBackground );


// Center on screeen
QRect rect( QApplication::desktop()->screenGeometry() );
move( rect.center() - this->rect().center() );
Expand Down
15 changes: 3 additions & 12 deletions src/gui/src/SplashScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,12 @@
#ifndef SPLASH_SCREEN_H
#define SPLASH_SCREEN_H

#include <QLabel>
#include <QSplashScreen>
#include <QTimer>
#include <QPixmap>

#include "HydrogenApp.h"

#include <hydrogen/object.h>

/**
* Fader and VuMeter widget
*/
class SplashScreen : public QSplashScreen, public H2Core::Object
{
H2_OBJECT
Expand All @@ -46,14 +40,11 @@ class SplashScreen : public QSplashScreen, public H2Core::Object

private slots:
void onCloseTimer();
// virtual void drawContents ( QPainter * painter );

private:
QPixmap *m_pBackground;
static const uint width = 400;
static const uint height = 300;
//QTimer m_closeTimer;

QPixmap * m_pBackground;
static const uint width = 400;
static const uint height = 300;
};


Expand Down

0 comments on commit dcd3690

Please sign in to comment.