diff options
| author | 2012-09-25 13:15:57 +0000 | |
|---|---|---|
| committer | 2012-09-25 13:15:57 +0000 | |
| commit | 4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c (patch) | |
| tree | 2a36735ae8685b0d6011f1bfdf0d27ec6211089b /src/modules/filetransferwindow/FileTransferWindow.cpp | |
| parent | Properly sort the console windows when sorting by name is selected in the tre... (diff) | |
| download | KVIrc-4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c.tar.gz KVIrc-4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c.tar.bz2 KVIrc-4602a1a7ac1f4b2fd33bb1581f4eedd1edd65a9c.zip | |
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
Diffstat (limited to 'src/modules/filetransferwindow/FileTransferWindow.cpp')
| -rw-r--r-- | src/modules/filetransferwindow/FileTransferWindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
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 |
