[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/fileview
From: Mario Scalas <mario.scalas () libero ! it>
Date: 2003-09-24 15:52:46
[Download RAW message or body]
CVS commit by marios:
Compile fixes for Qt 3.1.x
M +17 -8 filetreewidget.cpp 1.39
M +1 -0 filetreewidget.h 1.14
--- kdevelop/parts/fileview/filetreewidget.cpp #1.38:1.39
@@ -546,19 +546,28 @@ void FileTreeWidget::slotToggleShowVCSFi
if (showVCSFields())
{
- setColumnWidth( 1, viewport()->width() / 3 ); // "Revision"
- setColumnWidth( 2, viewport()->width() / 3 ); // "Timestamp"
+ setColumnWidth( 0, contentsWidth() / 3 ); // "Filename"
+ setColumnWidth( 1, contentsWidth() / 3 ); // "Revision"
+ setColumnWidth( 2, contentsWidth() / 3 ); // "Timestamp"
header()->show();
- triggerUpdate();
}
else
{
header()->hide();
- setColumnWidth( 0, viewport()->width() ); // Make the column to occupy all the row
- hideColumn( 1 );
- hideColumn( 2 );
+ setColumnWidth( 2 ,0 ); // Hide columns
+ setColumnWidth( 1, 0 );
+ setColumnWidth( 0, contentsWidth() ); // Make the column to occupy all the row
+ }
triggerUpdate();
- }
+}
+
+void FileTreeWidget::resizeContents( int w, int h )
+{
+ KFileTreeView::resizeContents( w, h );
+/*
+ if (!showVCSFields())
+ setColumnWidth( 0, contentsWidth() );
+*/
}
--- kdevelop/parts/fileview/filetreewidget.h #1.13:1.14
@@ -48,4 +48,5 @@ public:
public slots:
+ virtual void resizeContents( int w, int h );
void hideOrShow();
void addProjectFiles( QStringList const & fileList, bool constructing = false );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic