[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdevelop/parts/classview
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-03-28 21:42:23
Message-ID: 1175118143.144717.16833.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 647613 by apaku:
Make the comboboxes stretchable so that they show their content properly
M +2 -0 hierarchydlg.cpp
M +11 -11 navigator.cpp
--- branches/KDE/3.5/kdevelop/parts/classview/hierarchydlg.cpp #647612:647613
@@ -33,8 +33,10 @@
: QDialog(0, "hierarchy dialog", WDestructiveClose)
{
class_combo = new KComboView(true, 150, this);
+ class_combo->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
// class_combo->setMinimumWidth(150);
namespace_combo = new KComboView(true, 150, this);
+ namespace_combo->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
// namespace_combo->setMinimumWidth(150);
QPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
--- branches/KDE/3.5/kdevelop/parts/classview/navigator.cpp #647612:647613
@@ -110,14 +110,14 @@
m_state = GoToDefinitions;
m_navNoDefinition = true;
- m_actionSyncWithEditor = new KAction( i18n("Sync ClassView"), "view_tree", KShortcut(), this,
+ m_actionSyncWithEditor = new KAction( i18n("Sync ClassView"), "view_tree", KShortcut(), this,
SLOT(slotSyncWithEditor()), m_part->actionCollection(), "classview_sync_with_editor" );
- KAction * action = new KAction( i18n("Jump to next function"), CTRL+ALT+Key_PageDown, this,
+ KAction * action = new KAction( i18n("Jump to next function"), CTRL+ALT+Key_PageDown, this,
SLOT(slotJumpToNextFunction()), m_part->actionCollection(), "navigator_jump_to_next_function" );
action->plug( &m_dummyActionWidget );
- action = new KAction( i18n("Jump to previous function"), CTRL+ALT+Key_PageUp, this,
+ action = new KAction( i18n("Jump to previous function"), CTRL+ALT+Key_PageUp, this,
SLOT(slotJumpToPreviousFunction()), m_part->actionCollection(), "navigator_jump_to_previous_function" );
action->plug( &m_dummyActionWidget );
@@ -276,7 +276,7 @@
FunctionNavItem::Declaration);
m_functionNavDecls[fullName] = item;
item->setItem( 0, fullFunctionItem( *it ) );
-
+
m_part->m_functionsnav->view()->addItem(item);
}
toLeave << fullName;
@@ -376,10 +376,10 @@
///can highlight as it likes
TextPaintItem highlightFunctionName(QString function, int type, TextPaintStyleStore& styles) {
TextPaintItem ret;
-
+
if( !styles.hasStyle( type ) ) {
QFont font = styles.getStyle( 0 ).font;
-
+
switch(type) {
case 1:
default:
@@ -389,14 +389,14 @@
font.setPointSize( (font.pointSize() * 9) / 10 );
#endif
}
-
+
styles.addStyle( type, font );
}
-
+
QString args;
QString fScope;
int cutpos;
-
+
if((cutpos = function.find('(')) != -1) {
args = function.right( function.length() - cutpos );
function = function.left( cutpos );
@@ -418,14 +418,14 @@
template <class DomType>
TextPaintItem Navigator::fullFunctionItem(DomType fun)
{
-
+
QStringList scope = fun->scope();
QString function = scope.join(".");
if (!function.isEmpty())
function += ".";
function += m_part->languageSupport()->formatModelItem(fun, true);
function = m_part->languageSupport()->formatClassName(function);
-
+
return highlightFunctionName(function, 1, m_styles);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic