tests/auto/q3filedialog/tst_q3filedialog.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    57 public:
    57 public:
    58     tst_Q3FileDialog();
    58     tst_Q3FileDialog();
    59     virtual ~tst_Q3FileDialog();
    59     virtual ~tst_Q3FileDialog();
    60 
    60 
    61 private slots:
    61 private slots:
       
    62 #ifndef QT_MAC_USE_COCOA
    62     void getSetCheck();
    63     void getSetCheck();
       
    64 #endif
    63 };
    65 };
    64 
    66 
    65 tst_Q3FileDialog::tst_Q3FileDialog()
    67 tst_Q3FileDialog::tst_Q3FileDialog()
    66 {
    68 {
    67 }
    69 }
    68 
    70 
    69 tst_Q3FileDialog::~tst_Q3FileDialog()
    71 tst_Q3FileDialog::~tst_Q3FileDialog()
    70 {
    72 {
    71 }
    73 }
    72 
    74 
       
    75 #ifndef QT_MAC_USE_COCOA
    73   class Preview : public QLabel, public Q3FilePreview
    76   class Preview : public QLabel, public Q3FilePreview
    74   {
    77   {
    75   public:
    78   public:
    76       Preview(QWidget *parent=0) : QLabel(parent) {}
    79       Preview(QWidget *parent=0) : QLabel(parent) {}
    77 
    80 
   123     obj1.setInfoPreviewEnabled(true);
   126     obj1.setInfoPreviewEnabled(true);
   124     obj1.setContentsPreviewEnabled(false);
   127     obj1.setContentsPreviewEnabled(false);
   125     obj1.setPreviewMode(Q3FileDialog::PreviewMode(Q3FileDialog::Info));
   128     obj1.setPreviewMode(Q3FileDialog::PreviewMode(Q3FileDialog::Info));
   126     QCOMPARE(obj1.previewMode(), Q3FileDialog::PreviewMode(Q3FileDialog::Info));
   129     QCOMPARE(obj1.previewMode(), Q3FileDialog::PreviewMode(Q3FileDialog::Info));
   127 }
   130 }
       
   131 #endif
   128 
   132 
   129 QTEST_MAIN(tst_Q3FileDialog)
   133 QTEST_MAIN(tst_Q3FileDialog)
   130 #include "tst_q3filedialog.moc"
   134 #include "tst_q3filedialog.moc"