summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-30 04:58:35 (UTC)
committer zautrix <zautrix>2005-06-30 04:58:35 (UTC)
commitba4a6a95356f9a8044257c45347cee8b15667d0c (patch) (side-by-side diff)
tree63ffa2000426f06cae7ec5be7d1847b5f9fb4e26
parent63147898391dbeabca2dc8f48730b324c15a7498 (diff)
downloadkdepimpi-ba4a6a95356f9a8044257c45347cee8b15667d0c.zip
kdepimpi-ba4a6a95356f9a8044257c45347cee8b15667d0c.tar.gz
kdepimpi-ba4a6a95356f9a8044257c45347cee8b15667d0c.tar.bz2
fixxx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdeui/klistview.cpp9
-rw-r--r--microkde/kdeui/klistview.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/microkde/kdeui/klistview.cpp b/microkde/kdeui/klistview.cpp
index 25327aa..f7d2187 100644
--- a/microkde/kdeui/klistview.cpp
+++ b/microkde/kdeui/klistview.cpp
@@ -471,17 +471,26 @@ KListView::~KListView()
bool KListView::isExecuteArea( const QPoint& point )
{
if ( itemAt( point ) )
return isExecuteArea( point.x() );
return false;
}
+QSize KListView::sizeHint() const
+{
+ //qDebug("KListView::QSize sizeHint() ");
+#ifdef DESKTOP_VERSION
+ QListView::sizeHint();
+#else
+ return QSize ( 40, 40 );
+#endif
+}
bool KListView::isExecuteArea( int x )
{
if( allColumnsShowFocus() )
return true;
else {
int offset = 0;
int width = columnWidth( 0 );
int pos = header()->mapToIndex( 0 );
diff --git a/microkde/kdeui/klistview.h b/microkde/kdeui/klistview.h
index 0058416..9f0d9fd 100644
--- a/microkde/kdeui/klistview.h
+++ b/microkde/kdeui/klistview.h
@@ -125,16 +125,17 @@ public:
*/
KListView (QWidget *parent = 0, const char *name = 0, bool emulateRightMouse = true );
/**
* Destructor.
*/
virtual ~KListView();
+ virtual QSize sizeHint() const;
/**
* Reimplemented for internal reasons.
* Further reimplementations should call this function or else
* some features may not work correctly.
*
* The API is unaffected.
*/
virtual void setAcceptDrops (bool);