[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KApplication::makeStdCaption()
From:       Matthias Ettrich <ettrich () troll ! no>
Date:       1999-09-21 13:49:58
[Download RAW message or body]

On Tue, 21 Sep 1999, Espen Sand wrote:
> I added the makeStdCaption() last evening. Once you update kapp
> and have done the required build you can use (for both dialogs and 
> toplevel widgets):
> 
> setCaption(kapp->makeStdCaption(yourCaptionString));
> where "yourCaptionString" is a QString without the application name. 
> 
> At the moment the the returned format is "yourCaptionString - <appName>"
> (without the the < >  ;), but this can be changed so make no assumptions!


The problem with that is that we don't have anything like <appName> in
KApplication currently. All we have is an executable or internal name like
kedit, kpanel, kscd, etc. These names shouldn't show up in the caption.

This is the reason why the  .desktop files contain a localized attribute "Name"
which is passed into the "-caption" command-line argument of KApplication.

So maybe makeStdCaption should use this initial caption argument rather then
the exectuable name? It's awful to read something like "Configuration - kscd"
but nice to get "Configuration - CD Player". These kxyz names are mostly meant
to be internal.


Matthias

 > 
> 
> -- 
> Espen Sand

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic