From 4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 25 Sep 2012 13:15:57 +0000 Subject: qt5 support (sip): code only, no touch to build system by now git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6251 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/filetransferwindow/FileTransferWindow.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/modules/filetransferwindow/FileTransferWindow.cpp') diff --git a/src/modules/filetransferwindow/FileTransferWindow.cpp b/src/modules/filetransferwindow/FileTransferWindow.cpp index a9b90b0ed..6aee2d99b 100644 --- a/src/modules/filetransferwindow/FileTransferWindow.cpp +++ b/src/modules/filetransferwindow/FileTransferWindow.cpp @@ -137,8 +137,13 @@ FileTransferWidget::FileTransferWidget(QWidget * pParent) setHorizontalHeaderLabels(colHeaders); //default column widths setColumnWidth(0, FILETRANSFERW_CELLSIZE); +#if (QT_VERSION >= 0x050000) + horizontalHeader()->setSectionResizeMode(0, QHeaderView::Fixed); + horizontalHeader()->setSectionResizeMode(1, QHeaderView::Interactive); +#else horizontalHeader()->setResizeMode(0, QHeaderView::Fixed); horizontalHeader()->setResizeMode(1, QHeaderView::Interactive); +#endif setColumnWidth(1, 500); horizontalHeader()->setStretchLastSection(true); //focus policy @@ -326,13 +331,15 @@ bool FileTransferWindow::eventFilter( QObject *obj, QEvent *ev ) return KviWindow::eventFilter( obj, ev ); } +#warning FileTransferWindow::fontChange +/* void FileTransferWindow::fontChange(const QFont &oldFont) { QFontMetrics fm(font()); m_iLineSpacing = fm.lineSpacing(); KviWindow::fontChange(oldFont); } - +*/ void FileTransferWindow::tipRequest(KviDynamicToolTip * tip,const QPoint &pnt) { FileTransferItem * it = (FileTransferItem *)m_pTableWidget->itemAt(pnt); @@ -863,7 +870,3 @@ void FileTransferWindow::applyOptions() m_pIrcView->applyOptions(); KviWindow::applyOptions(); } - -#ifndef COMPILE_USE_STANDALONE_MOC_SOURCES -#include "m_FileTransferWindow.moc" -#endif //!COMPILE_USE_STANDALONE_MOC_SOURCES -- cgit v1.3.1-10-gc9f91