From kde-usability Wed Aug 13 17:38:37 2003 From: "Aaron J. Seigo" Date: Wed, 13 Aug 2003 17:38:37 +0000 To: kde-usability Subject: Re: relevantive - korganizer X-MARC-Message: https://marc.info/?l=kde-usability&m=106079784112760 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 13 August 2003 11:27, Reinhold Kainhofer wrote: > Aaron J. Seigo wrote: > > On Wednesday 13 August 2003 07:18, Reinhold Kainhofer wrote: > >> However, what if the summary was created from the first line, and later > >> the user edits the same event and changes the first line? Should the > >> summary be adapted? Probably yes. > > > > i wouldn't be too concerned about it... we can get fancy and do this, but > > it's much more important to simply have it pull the first line when the > > event is first created... > > > > that said, it's actually pretty easy to do what you want simply by not > > setting the title in the actual data and always grabbing the first line > > from the description when needed; > > Uhm, you mean to explicitly add code to use the first line of the > description when no summary is given? and this funcationality isn't abstracted away in a base class that has a subject() method?! if not, then that's a much more fundamental problem in KOrganizer... such things should be standardized in base classes to ensure consistent handling! i'd really expect something more like this: QString KOEvent::subject() { if (m_summary.isEmpty()) { return m_description.firstLine(); // yeah, psuedocode } return m_summary; } - -- Aaron J. Seigo GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/Onee1rcusafx20MRAmtHAJ9Ay6pU2uFlaiZo1IlJKAVkZhp1hgCfVHaS mhb6a4ws12f8nKlfcRDAMzo= =0bp3 -----END PGP SIGNATURE----- _______________________________________________ kde-usability mailing list kde-usability@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-usability