1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01: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_product_name = args.value( 3 );
setFixedSize( sizeHint() );
//hide until "send report" has been clicked
ui.progressBar->setVisible( false );
ui.button->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()
{
delete m_http;
@ -186,6 +186,7 @@ CrashReporter::onFail( int error, const QString& errorString )
qDebug() << "Error:" << error << errorString;
}
void
CrashReporter::onSendButton()
{
@ -194,5 +195,9 @@ CrashReporter::onSendButton()
ui.progressLabel->setVisible( true );
ui.sendButton->setEnabled( false );
ui.dontSendButton->setEnabled( false );
adjustSize();
setFixedSize( size() );
QTimer::singleShot( 0, this, SLOT( send() ) );
}

View File

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