diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-09-06 23:41:34 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-09-06 23:41:34 +0000 |
commit | ed08b5fd5bbf1af39c6eefff1e29bcba5957483c (patch) | |
tree | bfae3ded9546f2cd5361f615a2044ffe39f3c905 /ui/qt/capture_file_dialog.h | |
parent | 2bda67e82e64510bb254999a90404009b19a3ce4 (diff) | |
download | wireshark-ed08b5fd5bbf1af39c6eefff1e29bcba5957483c.tar.gz wireshark-ed08b5fd5bbf1af39c6eefff1e29bcba5957483c.tar.bz2 wireshark-ed08b5fd5bbf1af39c6eefff1e29bcba5957483c.zip |
Fix compilation on Windows.
svn path=/trunk/; revision=44798
Diffstat (limited to 'ui/qt/capture_file_dialog.h')
-rw-r--r-- | ui/qt/capture_file_dialog.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/ui/qt/capture_file_dialog.h b/ui/qt/capture_file_dialog.h index 9c87cdd701..29c4d33bb9 100644 --- a/ui/qt/capture_file_dialog.h +++ b/ui/qt/capture_file_dialog.h @@ -60,31 +60,23 @@ class CaptureFileDialog : public QFileDialog Q_OBJECT public: explicit CaptureFileDialog(QWidget *parent = NULL, QString &display_filter = *new QString()); - int selectedFileType(); int mergeType(); +#if !defined(Q_WS_WIN) + int selectedFileType(); +#endif // Q_WS_WIN private: -#if !defined(Q_WS_WIN) - void addDisplayFilterEdit(); - void addResolutionControls(QVBoxLayout &v_box); void addMergeControls(QVBoxLayout &v_box); + void addDisplayFilterEdit(); void addPreview(QVBoxLayout &v_box); - QString fileType(int ft, bool extension_globs = true); QStringList buildFileOpenTypeList(void); - QStringList buildFileSaveAsTypeList(capture_file *cf, bool must_support_comments); -#endif // Q_WS_WIN QVBoxLayout left_v_box_; QVBoxLayout right_v_box_; - DisplayFilterEdit* display_filter_edit_; QString &display_filter_; - - QCheckBox mac_res_; - QCheckBox transport_res_; - QCheckBox network_res_; - QCheckBox external_res_; + DisplayFilterEdit* display_filter_edit_; QLabel preview_format_; QLabel preview_size_; @@ -99,6 +91,17 @@ private: QHash<QString, int>type_hash_; +#if !defined(Q_WS_WIN) + void addResolutionControls(QVBoxLayout &v_box); + + QStringList buildFileSaveAsTypeList(capture_file *cf, bool must_support_comments); + + QCheckBox mac_res_; + QCheckBox transport_res_; + QCheckBox network_res_; + QCheckBox external_res_; +#endif // Q_WS_WIN + signals: public slots: @@ -108,9 +111,7 @@ public slots: int merge(QString &file_name); private slots: -#if !defined(Q_WS_WIN) void preview(const QString & path); -#endif // Q_WS_WIN }; #endif // CAPTURE_FILE_DIALOG_H |