sed: s/( void )/(), s/FALSE/false/, s/TRUE/true
Replaced remaining occurences of old constants and superfluous "void"
on empty argument list of functions.
(cherry picked from commit 166701f9f3)
This commit is contained in:
1 parent
1d5cb23385
commit
f4dbb2ff5c
175 files changed
+1130
-1130
No files matched your search
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
|
||||
textFloat::textFloat( void ) :
|
||||
textFloat::textFloat() :
|
||||
QWidget( engine::mainWindow(), Qt::ToolTip ),
|
||||
m_title( "" ),
|
||||
m_text( "" ),
|
||||
@@ -101,7 +101,7 @@ textFloat * textFloat::displayMessage( const QString & _msg, int _timeout,
|
||||
tf->show();
|
||||
if( _timeout > 0 )
|
||||
{
|
||||
tf->setAttribute( Qt::WA_DeleteOnClose, TRUE );
|
||||
tf->setAttribute( Qt::WA_DeleteOnClose, true );
|
||||
QTimer::singleShot( _timeout, tf, SLOT( close() ) );
|
||||
}
|
||||
return( tf );
|
||||
@@ -145,14 +145,14 @@ void textFloat::paintEvent( QPaintEvent * _pe )
|
||||
else
|
||||
{
|
||||
int text_x = 2;
|
||||
if( m_pixmap.isNull() == FALSE )
|
||||
if( m_pixmap.isNull() == false )
|
||||
{
|
||||
p.drawPixmap( 5, 5, m_pixmap );
|
||||
text_x += m_pixmap.width() + 8;
|
||||
}
|
||||
p.drawText( text_x, 28, m_text );
|
||||
QFont f = p.font();
|
||||
f.setBold( TRUE );
|
||||
f.setBold( true );
|
||||
p.setFont( f );
|
||||
p.drawText( text_x, 12, m_title );
|
||||
}
|
||||
@@ -169,14 +169,14 @@ void textFloat::mousePressEvent( QMouseEvent * )
|
||||
|
||||
|
||||
|
||||
void textFloat::updateSize( void )
|
||||
void textFloat::updateSize()
|
||||
{
|
||||
QFontMetrics metrics( pointSize<8>( font() ) );
|
||||
QRect textBound = metrics.boundingRect( m_text );
|
||||
if( m_title != "" )
|
||||
{
|
||||
QFont f = pointSize<8>( font() );
|
||||
f.setBold( TRUE );
|
||||
f.setBold( true );
|
||||
int title_w = QFontMetrics( f ).boundingRect( m_title ).width();
|
||||
if( title_w > textBound.width() )
|
||||
{
|
||||
@@ -184,7 +184,7 @@ void textFloat::updateSize( void )
|
||||
}
|
||||
textBound.setHeight( textBound.height() * 2 + 14 );
|
||||
}
|
||||
if( m_pixmap.isNull() == FALSE )
|
||||
if( m_pixmap.isNull() == false )
|
||||
{
|
||||
textBound.setWidth( textBound.width() + m_pixmap.width() + 10 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user