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:
parent
0f7291368f
commit
dc9e3728f5
@ -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() ) );
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user