Git commit 0d504bc0674f2c6fd7f56fe4d77ad632d3b21a9b by Allen Winter.
Committed on 08/05/2026 at 13:04.
Pushed by winterz into branch 'master'.

Month view: add an option to display the event start and end times

BUG: 104732

M  +1    -1    CMakeLists.txt
M  +4    -3    doc/index.docbook
M  +1    -0    src/prefs/koprefsdialogviews.cpp
M  +9    -3    src/settings/korganizer.kcfg
M  +2    -0    src/whatsnew/whatsnewtranslations.cpp

https://invent.kde.org/pim/korganizer/-/commit/0d504bc0674f2c6fd7f56fe4d77ad632d3b21a9b

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6feea9f6..514187a8f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,7 +149,7 @@ set(PIMCOMMON_LIB_VERSION "6.7.40")
 set(LIBKDEPIM_LIB_VERSION "6.7.40")
 set(LIBINCIDENCEEDITOR_LIB_VERSION "6.7.41")
 set(CALENDARSUPPORT_LIB_VERSION "6.7.42")
-set(EVENTVIEW_LIB_VERSION "6.7.45")
+set(EVENTVIEW_LIB_VERSION "6.7.46")
 
 # Find KF6 package
 find_package(KF6I18n ${KF_MIN_VERSION} CONFIG REQUIRED)
diff --git a/doc/index.docbook b/doc/index.docbook
index d6558c85b..4be9ede63 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -2340,9 +2340,10 @@ from the context menu.
 
 <varlistentry>
 <term><guilabel>Display Options</guilabel></term>
-<listitem><para>Use the first four check boxes to display the time, icons
-(reminder, recursion &etc;),
-to-dos or journals in Month view.</para></listitem>
+<listitem>
+  <para>The first two check boxes allow displaying the start-time only, or 
both the start-time and end-time.</para>
+  <para>Use the next four check boxes to optionally display icons, to-dos, 
journals or holidays in the month view.</para>
+</listitem>
 </varlistentry>
 <!--FIXME Icons to use dropdown box missing-->
 
diff --git a/src/prefs/koprefsdialogviews.cpp b/src/prefs/koprefsdialogviews.cpp
index 16e686208..c873d7e90 100644
--- a/src/prefs/koprefsdialogviews.cpp
+++ b/src/prefs/koprefsdialogviews.cpp
@@ -136,6 +136,7 @@ KOPrefsDialogViews::KOPrefsDialogViews(QObject *parent, 
const KPluginMetaData &d
     /*mdisplayLayout->addWidget(
           addWidBool( KOPrefs::instance()->enableMonthScrollItem() 
)->checkBox() );*/
     
mdisplayLayout->addWidget(addWidBool(KOPrefs::instance()->showTimeInMonthViewItem())->checkBox());
+    
mdisplayLayout->addWidget(addWidBool(KOPrefs::instance()->showEndTimeInMonthViewItem())->checkBox());
     
mdisplayLayout->addWidget(addWidBool(KOPrefs::instance()->enableMonthItemIconsItem())->checkBox());
     
mdisplayLayout->addWidget(addWidBool(KOPrefs::instance()->showTodosMonthViewItem())->checkBox());
     
mdisplayLayout->addWidget(addWidBool(KOPrefs::instance()->showJournalsMonthViewItem())->checkBox());
diff --git a/src/settings/korganizer.kcfg b/src/settings/korganizer.kcfg
index f336cecd2..5c9cd0294 100644
--- a/src/settings/korganizer.kcfg
+++ b/src/settings/korganizer.kcfg
@@ -224,9 +224,15 @@
       <default>true</default>
     </entry>
     <entry type="Bool" key="Show time in Month View" 
name="ShowTimeInMonthView">
-      <label>Show time in month view items</label>
-      <whatsthis>Check this box to display the time in month view 
items.</whatsthis>
-      <tooltip>Display time in month view items</tooltip>
+      <label>Show start-times without end-times in month view items</label>
+      <whatsthis>Check this box to display the start-time without the end-time 
in month view items.</whatsthis>
+      <tooltip>Display start-time without the end-time in month view 
items</tooltip>
+      <default>false</default>
+    </entry>
+    <entry type="Bool" key="Show end-time in Month View" 
name="ShowEndTimeInMonthView">
+      <label>Show the start-time and the end-time in month view items</label>
+      <whatsthis>Check this box to display the start and end times in month 
view items.</whatsthis>
+      <tooltip>Display the start and end times in month view items</tooltip>
       <default>false</default>
     </entry>
     <entry type="Bool" name="ShowTodosMonthView">
diff --git a/src/whatsnew/whatsnewtranslations.cpp 
b/src/whatsnew/whatsnewtranslations.cpp
index 0f27a4128..c790dc164 100644
--- a/src/whatsnew/whatsnewtranslations.cpp
+++ b/src/whatsnew/whatsnewtranslations.cpp
@@ -27,6 +27,8 @@ QList<KLazyLocalizedString> 
WhatsNewTranslations::lastNewFeatures() const
         kli18n("Month view: An option was added to allow using the custom 
holiday color as the date box background color if at least one holiday lands on 
"
                "that date. To enable this behavior, check the \"Use the 
Holiday background color when a holiday lands on the date\" option "
                "in the Views->Month View tab"),
+        kli18n("Month view: An option was added to show start-time and 
end-times. Previously only showing the start-time was supported. To enable this 
"
+               "option, check the \"Show the start-time and the end-time in 
month view items\" option in the View->Month View tab"),
         kli18n("Agenda view: underline today's column header date"),
         kli18n("Agenda view: optionally show the incidence locations inside 
the agenda items. To enable this behavior, check the \"Show incidence "
                "locations in agenda view items\" option in the View->Agenda 
View tab"),

Reply via email to