mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	Rationale: - there was a lot of large objects passed by value, so potentially there's a speed bump from this - even for implicitly shared classes like QString/QList there's still a (small) cost for copying the objects when there's no reason to - it's the right thing to do!
		
			
				
	
	
		
			21 lines
		
	
	
		
			616 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			616 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/** \ingroup gui
 | 
						|
 * A generic dialog with layout and button box
 | 
						|
 */
 | 
						|
class QgsDialog : QDialog
 | 
						|
{
 | 
						|
%TypeHeaderCode
 | 
						|
#include <qgsdialog.h>
 | 
						|
%End
 | 
						|
 | 
						|
  public:
 | 
						|
    QgsDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags,
 | 
						|
               const QDialogButtonBox::StandardButtons& buttons = QDialogButtonBox::Close,
 | 
						|
               Qt::Orientation orientation = Qt::Horizontal );
 | 
						|
    ~QgsDialog();
 | 
						|
 | 
						|
    //! Returns the central layout. Widgets added to it must have this dialog as parent.
 | 
						|
    QVBoxLayout *layout();
 | 
						|
    //! Returns the button box.
 | 
						|
    QDialogButtonBox *buttonBox();
 | 
						|
};
 |