mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove file global defines
This commit is contained in:
@@ -36,10 +36,6 @@
|
||||
#include <QToolBar>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#define DEFAULT_DIALOG_WIDTH 250
|
||||
#define DEFAULT_DIALOG_HEIGHT 100
|
||||
#define DEFAULT_DIALOG_TITLE "Export Plot Data"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -89,11 +85,11 @@ RicResampleDialogResult RicResampleDialog::openDialog( QWidget* parent /*= 0*/,
|
||||
if ( !caption.isEmpty() )
|
||||
dialog.setWindowTitle( caption );
|
||||
else
|
||||
dialog.setWindowTitle( DEFAULT_DIALOG_TITLE );
|
||||
dialog.setWindowTitle( "Export Plot Data" );
|
||||
|
||||
dialog.setPeriodOptions( RiaQDateTimeTools::dateTimePeriods() );
|
||||
|
||||
dialog.resize( DEFAULT_DIALOG_WIDTH, DEFAULT_DIALOG_HEIGHT );
|
||||
dialog.resize( 250, 100 );
|
||||
dialog.exec();
|
||||
|
||||
return RicResampleDialogResult( dialog.result() == QDialog::Accepted, dialog.selectedDateTimePeriod() );
|
||||
|
||||
@@ -59,9 +59,6 @@
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#define DEFAULT_DIALOG_WIDTH 550
|
||||
#define DEFAULT_DIALOG_INIT_HEIGHT 150
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Internal functions
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -376,7 +373,7 @@ RicSummaryCaseRestartDialogResult RicSummaryCaseRestartDialog::openDialog( const
|
||||
// Set properties and show dialog
|
||||
dialog.setWindowTitle( "Origin Files" );
|
||||
dialog.m_buttons->button( QDialogButtonBox::Apply )->setVisible( !useFirstSummaryCaseAsTemplate && showApplyToAllWidget );
|
||||
dialog.resize( DEFAULT_DIALOG_WIDTH, DEFAULT_DIALOG_INIT_HEIGHT );
|
||||
dialog.resize( 550, 150 );
|
||||
|
||||
QApplication::setOverrideCursor( QCursor( Qt::ArrowCursor ) );
|
||||
dialog.exec();
|
||||
|
||||
Reference in New Issue
Block a user