1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

* Automatically adjust crash-reporter's window size.

This commit is contained in:
Christian Muehlhaeuser
2012-06-26 02:05:11 +02:00
parent 0f7291368f
commit dc9e3728f5
2 changed files with 11 additions and 6 deletions

View File

@@ -66,17 +66,17 @@ CrashReporter::CrashReporter( const QStringList& args )
m_minidump = m_dir + '/' + args.value( 2 ) + ".dmp"; m_minidump = m_dir + '/' + args.value( 2 ) + ".dmp";
m_product_name = args.value( 3 ); m_product_name = args.value( 3 );
setFixedSize( sizeHint() );
//hide until "send report" has been clicked //hide until "send report" has been clicked
ui.progressBar->setVisible( false ); ui.progressBar->setVisible( false );
ui.button->setVisible( false ); ui.button->setVisible( false );
ui.progressLabel->setVisible( false ); ui.progressLabel->setVisible( false );
connect( ui.sendButton, SIGNAL( clicked() ), SLOT( onSendButton() ) ); connect( ui.sendButton, SIGNAL( clicked() ), SLOT( onSendButton() ) );
adjustSize();
setFixedSize( size() );
} }
CrashReporter::~CrashReporter() CrashReporter::~CrashReporter()
{ {
delete m_http; delete m_http;
@@ -186,6 +186,7 @@ CrashReporter::onFail( int error, const QString& errorString )
qDebug() << "Error:" << error << errorString; qDebug() << "Error:" << error << errorString;
} }
void void
CrashReporter::onSendButton() CrashReporter::onSendButton()
{ {
@@ -194,5 +195,9 @@ CrashReporter::onSendButton()
ui.progressLabel->setVisible( true ); ui.progressLabel->setVisible( true );
ui.sendButton->setEnabled( false ); ui.sendButton->setEnabled( false );
ui.dontSendButton->setEnabled( false ); ui.dontSendButton->setEnabled( false );
adjustSize();
setFixedSize( size() );
QTimer::singleShot( 0, this, SLOT( send() ) ); QTimer::singleShot( 0, this, SLOT( send() ) );
} }

View File

@@ -9,8 +9,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>438</width> <width>376</width>
<height>246</height> <height>216</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">