mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Optimized columns of the channel tree.
Fixed german translation. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3666 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
76f51d05b3
commit
d687019d01
@ -73,25 +73,22 @@ ChannelFeed::ChannelFeed(QWidget *parent)
|
||||
connect(treeView, SIGNAL(customContextMenuRequested( QPoint ) ), this, SLOT( channelListCustomPopupMenu( QPoint ) ) );
|
||||
|
||||
mChannelId.clear();
|
||||
model = new QStandardItemModel(0, 2, this);
|
||||
|
||||
model = new QStandardItemModel(0, COLUMN_COUNT, this);
|
||||
model->setHeaderData(COLUMN_NAME, Qt::Horizontal, tr("Name"), Qt::DisplayRole);
|
||||
model->setHeaderData(COLUMN_POPULARITY, Qt::Horizontal, tr("Popularity"), Qt::DisplayRole);
|
||||
|
||||
treeView->setModel(model);
|
||||
treeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
|
||||
treeView->setItemDelegate(new ChanGroupDelegate());
|
||||
treeView->setRootIsDecorated(true);
|
||||
|
||||
connect(treeView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectChannel(QModelIndex)));
|
||||
|
||||
// hide header and id column
|
||||
treeView->setHeaderHidden(true);
|
||||
|
||||
/* Set header resize modes and initial section sizes TreeView*/
|
||||
QHeaderView * _header = treeView->header () ;
|
||||
_header->setResizeMode ( COLUMN_POPULARITY, QHeaderView::Custom);
|
||||
_header->resizeSection ( COLUMN_NAME, 190 );
|
||||
_header->setResizeMode ( COLUMN_NAME, QHeaderView::Stretch);
|
||||
_header->setResizeMode ( COLUMN_POPULARITY, QHeaderView::Fixed);
|
||||
_header->resizeSection ( COLUMN_POPULARITY, 25 );
|
||||
|
||||
// set ChannelList Font
|
||||
itemFont = QFont("ARIAL", 10);
|
||||
|
@ -254,12 +254,27 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="contextMenuPolicy">
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>19</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<attribute name="headerStretchLastSection">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<attribute name="headerStretchLastSection">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -58,7 +58,7 @@ void PeerStatus::getPeerStatus(unsigned int nFriendCount, unsigned int nOnlineCo
|
||||
|
||||
|
||||
if (statusPeers)
|
||||
statusPeers -> setText( tr("<strong>Friends:</strong>") + " " + QString::fromStdString(out.str()) + " | " + tr("<span style=\"color:#0000FF\"><strong>Online:</strong></span>") + " " + QString::fromStdString(out2.str()) );
|
||||
statusPeers -> setText( "<strong>" + tr("Friends") + ":</strong> " + QString::fromStdString(out.str()) + " | <span style=\"color:#0000FF\"><strong>" + tr("Online") + ":</strong></span> " + QString::fromStdString(out2.str()) );
|
||||
|
||||
if (nOnlineCount > 0)
|
||||
{
|
||||
|
Binary file not shown.
@ -856,7 +856,7 @@ p, li { white-space: pre-wrap; }
|
||||
<context>
|
||||
<name>ChanMsgItem</name>
|
||||
<message>
|
||||
<location filename="../gui/feeds/ChanMsgItem.ui" line="+229"/>
|
||||
<location filename="../gui/feeds/ChanMsgItem.ui" line="+235"/>
|
||||
<source>Remove Item</source>
|
||||
<translation>Eintrag entfernen</translation>
|
||||
</message>
|
||||
@ -877,12 +877,21 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Abspielen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+62"/>
|
||||
<location line="+33"/>
|
||||
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Sans'; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Toggle Message Read Status</p></body></html></source>
|
||||
<translation type="unfinished">Gelesen Status umschalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+36"/>
|
||||
<source>New</source>
|
||||
<translation>Neu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-149"/>
|
||||
<location line="-156"/>
|
||||
<source>Unsubscribe From Channel</source>
|
||||
<translation>Kanal abbestellen</translation>
|
||||
</message>
|
||||
@ -1005,9 +1014,9 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+340"/>
|
||||
<location line="+355"/>
|
||||
<source>Set all to read</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Alle als gelesen markieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+100"/>
|
||||
@ -1035,7 +1044,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Kanal abbestellen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+77"/>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+78"/>
|
||||
<source>Name</source>
|
||||
<translation>Name</translation>
|
||||
</message>
|
||||
@ -1045,7 +1054,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Beliebtheit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+22"/>
|
||||
<location line="+18"/>
|
||||
<source>Own Channels</source>
|
||||
<translation>Meine Kanäle</translation>
|
||||
</message>
|
||||
@ -1065,7 +1074,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Andere Kanäle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/ChannelFeed.ui" line="-147"/>
|
||||
<location filename="../gui/ChannelFeed.ui" line="-162"/>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+37"/>
|
||||
<source>Post to Channel</source>
|
||||
<translation>Kanalbeitrag erstellen</translation>
|
||||
@ -1100,12 +1109,12 @@ Abgeholt: %2
|
||||
Verfügbar: %3</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+134"/>
|
||||
<location line="+125"/>
|
||||
<source>No Channel Selected</source>
|
||||
<translation>Keinen Kanal gewählt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-376"/>
|
||||
<location line="-367"/>
|
||||
<source>Restore Publish Rights for Channel</source>
|
||||
<translation>Stelle Veröffentlichungsrechte für Kanal wieder her</translation>
|
||||
</message>
|
||||
@ -2089,6 +2098,11 @@ Möchten Sie die Änderungen speichern?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+12"/>
|
||||
<source>Key recipients can publish to restricted-type channels, and can view and publish for private-type channels </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+3"/>
|
||||
<source>Share Private Publish Key</source>
|
||||
<translation>Verteile privaten Schlüssel</translation>
|
||||
</message>
|
||||
@ -4947,7 +4961,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation type="unfinished">Blogs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+562"/>
|
||||
<location line="+542"/>
|
||||
<source>Internal Error</source>
|
||||
<translation>Interener Fehler</translation>
|
||||
</message>
|
||||
@ -5005,7 +5019,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Schnellstart Assistent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/MainWindow.cpp" line="-298"/>
|
||||
<location filename="../gui/MainWindow.cpp" line="-278"/>
|
||||
<source>Search</source>
|
||||
<translation>Suchen</translation>
|
||||
</message>
|
||||
@ -5020,7 +5034,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Messenger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/MainWindow.cpp" line="+156"/>
|
||||
<location filename="../gui/MainWindow.cpp" line="+136"/>
|
||||
<source>Show/Hide</source>
|
||||
<translation>Anzeigen/Verbergen</translation>
|
||||
</message>
|
||||
@ -5069,7 +5083,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Maximieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-154"/>
|
||||
<location line="-134"/>
|
||||
<source>Links Cloud</source>
|
||||
<translation>Verknüpfungs-Wolke</translation>
|
||||
</message>
|
||||
@ -5084,7 +5098,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/MainWindow.cpp" line="+509"/>
|
||||
<location filename="../gui/MainWindow.cpp" line="+489"/>
|
||||
<source>Help</source>
|
||||
<translation>Hilfe</translation>
|
||||
</message>
|
||||
@ -5094,7 +5108,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Über</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/MainWindow.cpp" line="-530"/>
|
||||
<location filename="../gui/MainWindow.cpp" line="-510"/>
|
||||
<source>Forums</source>
|
||||
<translation>Foren</translation>
|
||||
</message>
|
||||
@ -5104,7 +5118,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>RetroShare %1 eine sichere und dezentralisierte Kommunikationsplattform</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+593"/>
|
||||
<location line="+573"/>
|
||||
<source>Open Messages</source>
|
||||
<translation>Öffne Nachrichten</translation>
|
||||
</message>
|
||||
@ -5114,12 +5128,12 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Anwendungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-517"/>
|
||||
<location line="-497"/>
|
||||
<source>Plugins</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+533"/>
|
||||
<location line="+513"/>
|
||||
<source>Do you really want to exit RetroShare ?</source>
|
||||
<translation>Wollen Sie RetroShare wirklich beenden?</translation>
|
||||
</message>
|
||||
@ -7086,13 +7100,13 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
<message>
|
||||
<location line="+20"/>
|
||||
<source><strong>Friends:</strong></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<source>Friends</source>
|
||||
<translation>Freunde</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+0"/>
|
||||
<source><span style="color:#0000FF"><strong>Online:</strong></span></source>
|
||||
<translation><span style="color:#0000FF"><strong>Online:</strong></span></translation>
|
||||
<source>Online</source>
|
||||
<translation>Online</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
Loading…
Reference in New Issue
Block a user