<table><tr><td style="">Zren created this revision.<br />Zren added reviewers: Plasma, VDG.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />Zren requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18168">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Assuming <a href="https://phabricator.kde.org/D18019" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D18019</a> is merged, this would:</p>

<hr class="remarkup-hr" />

<p>Provides an easy lookup of the date format variables for the user so the user does not need to Alt+Tab between windows.</p>

<p>You can click a variable or it's rendered text to insert the variable into the TextField. It will add a space <tt style="background: #ebebeb; font-size: 13px;">" "</tt> unless the text is empty.</p>

<p>You can also drag a variable and drop it onto the text field to insert it.</p>

<hr class="remarkup-hr" />

<p><a href="https://phabricator.kde.org/F6539261" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6539261: screen-2019-01-10_14.46.15.mp4</a></p>

<p>To Do:</p>

<ul class="remarkup-list remarkup-list-with-checkmarks">
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> Delete the selected text first before inserting.</li>
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> I should check if we should add a space afterwards as well in case the text cursor is in the middle of a word.</li>
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> I should not add a space if there's already a space in front.</li>
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> Select the inserted text</li>
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> <tt style="background: #ebebeb; font-size: 13px;">TextField.focus = true</tt> instead of drawing a rectangular outline above the TextField to demonstrate we can drop?</li>
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> Move the <tt style="background: #ebebeb; font-size: 13px;">TextField.cursorPosition</tt> when a hovering with a drag</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Test clicking to add.</li>
<li class="remarkup-list-item">Test dragging and dropping.</li>
<li class="remarkup-list-item">Test adding with the <tt style="background: #ebebeb; font-size: 13px;">cursorPosition</tt> at the start of a word, and make sure it adds a space after (but not before).</li>
<li class="remarkup-list-item">Test adding with the <tt style="background: #ebebeb; font-size: 13px;">cursorPosition</tt> inside a word, and make sure it adds a space before and after.</li>
<li class="remarkup-list-item">Test adding with the <tt style="background: #ebebeb; font-size: 13px;">cursorPosition</tt> at the end of a word, and make sure it adds a space before (but not after).</li>
<li class="remarkup-list-item">Test adding with a selection, and make sure it deletes the existing selected text first before adding.</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18168">https://phabricator.kde.org/D18168</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/digital-clock/package/contents/ui/DateFormatTable.qml<br />
applets/digital-clock/package/contents/ui/configAppearance.qml</div></div></div><br /><div><strong>To: </strong>Zren, Plasma, VDG<br /><strong>Cc: </strong>plasma-devel, kvanton, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>