void setSplitViewEnabled(bool enabled, const QUrl &secondaryUrl = QUrl());
/**
- * @return The primary view containter.
+ * @return The primary view container.
*/
DolphinViewContainer* primaryViewContainer() const;
/**
- * @return The secondary view containter, can be 0 if split view is disabled.
+ * @return The secondary view container, can be 0 if split view is disabled.
*/
DolphinViewContainer* secondaryViewContainer() const;
namespace {
// If the visible index range changes, KFileItemModelRolesUpdater is not
- // informed immediatetly, but with a short delay. This ensures that scrolling
+ // informed immediately, but with a short delay. This ensures that scrolling
// always feels smooth and is not interrupted by icon loading (which can be
// quite expensive if a disk access is required to determine the final icon).
const int ShortInterval = 50;
scaledPixmap);
scaledPixmap = largeFrame;
} else {
- // The image must be shrinked as it is too large to fit into
+ // The image must be shrunk as it is too large to fit into
// the available icon size
KPixmapModifier::applyFrame(scaledPixmap, m_iconSize);
}
// We need a reasonable upper limit for number of items to resolve after
// and before the visible range. m_maximumVisibleItems can be quite large
- // when using Compace View.
+ // when using Compact View.
const int readAheadItems = qMin(ReadAheadPages * m_maximumVisibleItems, ResolveAllItemsLimit / 2);
// Add items after the visible range.
/**
* If set to true, items having child-items can be expanded to show the child-items as
- * part of the view. Per default the expanding of items is is disabled. If expanding of
+ * part of the view. Per default the expanding of items is disabled. If expanding of
* items is enabled, the methods KItemModelBase::setExpanded(), KItemModelBase::isExpanded(),
* KItemModelBase::isExpandable() and KItemModelBase::expandedParentsCount()
* must be reimplemented. The view-implementation
/**
* return and paint a frame round an icon
* @arg framesize is in device-independent pixels
- * @return is in device-indepent pixels
+ * @return is in device-independent pixels
*/
static QSize sizeInsideFrame(const QSize& frameSize);
PlacesItem* placesItem(int index) const;
/**
- * @brief Mark an item as hiden
+ * @brief Mark an item as hidden
* @param index of the item to be hidden
*/
void hideItem(int index);
const bool applyToAllFolders = m_applyToAllFolders && m_applyToAllFolders->isChecked();
- // If the user selected 'Apply To All Folders' the view properties implicitely
+ // If the user selected 'Apply To All Folders' the view properties implicitly
// are also used as default for new folders.
const bool useAsDefault = applyToAllFolders || (m_useAsDefault && m_useAsDefault->isChecked());
if (useAsDefault) {
if (text.isEmpty()) {
// Assure that the previous set text won't get
- // cleared immediatelly.
+ // cleared immediately.
m_resetToDefaultTextTimer->start();
} else {
m_text = text;
QVERIFY(!m_selectionManager->hasSelection());
QVERIFY(m_selectionManager->selectedItems().isEmpty());
- // Perform the initial selectiion
+ // Perform the initial selection
m_selectionManager->setSelectedItems(initialSelection);
verifySelectionChange(spySelectionChanged, initialSelection, KItemSet());
/**
* Test all functions that find items:
- * contais(int), find(int), constFind(int)
+ * contains(int), find(int), constFind(int)
*/
void KItemSetTest::testFind()
{
QCOMPARE(tmp.end(), tmp.find(i));
QCOMPARE(tmp.constEnd(), tmp.constFind(i));
- // Check the returen value, now contained in 'it'.
+ // Check the returned value, now contained in 'it'.
if (i == max) {
QCOMPARE(it, tmp.end());
} else {
/**
* Invoked when the file item model indicates that the loading of a directory has
- * been completed. Assures that pasted items and renamed items get seleced.
+ * been completed. Assures that pasted items and renamed items get selected.
*/
void slotDirectoryLoadingCompleted();
Q_SIGNALS:
/**
* Emitted by DolphinViewActionHandler when the user triggered an action.
- * This is only used for clearining the statusbar in DolphinMainWindow.
+ * This is only used for clearing the statusbar in DolphinMainWindow.
*/
void actionBeingHandled();
*/
IgnoredVersion,
/**
- * The file is is tracked by the version control system, but
+ * The file is tracked by the version control system, but
* is missing in the directory (e.g. by deleted without using
* a version control command).
* @since 4.8
//
// For the details-view a special case must be respected: Per default the size
// and date should be shown without creating a .directory file. Only if
- // the user explictly has modified the properties of the details view (marked
+ // the user explicitly has modified the properties of the details view (marked
// by "CustomizedDetails"), also a details-view with no additional information
// is accepted.